summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHyong Youb Kim <hyonkim@cisco.com>2018-11-01 22:49:17 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2018-11-05 15:01:25 +0100
commiteeef60b0eb203d47d25fae0996312f516eedc7ae (patch)
tree597f9f6d8379ec70281b763ee554b6758b9808f4 /drivers
parentd09328567e3212306b91d314a28214f81e0e9adf (diff)
downloaddpdk-eeef60b0eb203d47d25fae0996312f516eedc7ae.zip
dpdk-eeef60b0eb203d47d25fae0996312f516eedc7ae.tar.gz
dpdk-eeef60b0eb203d47d25fae0996312f516eedc7ae.tar.xz
net/enic: use macro for attribute weak
Fixes: 8a6ff33d6d36 ("net/enic: add AVX2 based vectorized Rx handler") Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/enic/enic_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
index e81c3f3..c3869de 100644
--- a/drivers/net/enic/enic_main.c
+++ b/drivers/net/enic/enic_main.c
@@ -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;