net/enic: use rte macro for attribute weak
Checks
Commit Message
Fixes: 8a6ff33d6d36 ("net/enic: add AVX2 based vectorized Rx handler")
Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
---
drivers/net/enic/enic_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 11/2/2018 5:49 AM, Hyong Youb Kim wrote:
> Fixes: 8a6ff33d6d36 ("net/enic: add AVX2 based vectorized Rx handler")
>
> Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Applied to dpdk-next-net/master, thanks.
@@ -518,7 +518,7 @@ static void enic_prep_wq_for_simple_tx(struct enic *enic, uint16_t queue_idx)
* The 'strong' version is in enic_rxtx_vec_avx2.c. This weak version is used
* used when that file is not compiled.
*/
-bool __attribute__((weak))
+__rte_weak bool
enic_use_vector_rx_handler(__rte_unused struct enic *enic)
{
return false;