From: Cunming Liang Date: Thu, 26 Jun 2014 06:53:30 +0000 (+0800) Subject: ixgbe: fix build of standard Rx with vectorized Tx X-Git-Tag: spdx-start~10599 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b23dad37f0c745b6cab1c90f8e136584c4c8d15b;p=dpdk.git ixgbe: fix build of standard Rx with vectorized Tx The vpmd RX routine won't be used if RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC is not defined or its condition check fail. The case RTE_LIBRTE_IXGBE_RX_ALLOC_BULK_ALLOC=n and RTE_IXGBE_INC_VECTOR=y may exist when choose to use standard RX and optimized TX (ixgbe_xmit_pkts_vec/ixgbe_xmit_pkts_simple). Signed-off-by: Cunming Liang Acked-by: Bruce Richardson Acked-by: Yong Liu Tested-by: Zhaochen Zhan --- diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.h b/lib/librte_pmd_ixgbe/ixgbe_rxtx.h index 26de64be25..64c0695b2f 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.h +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.h @@ -40,6 +40,8 @@ #ifdef RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC #define RTE_PMD_IXGBE_RX_MAX_BURST 32 #define RTE_IXGBE_DESCS_PER_LOOP 4 +#elif defined(RTE_IXGBE_INC_VECTOR) +#define RTE_IXGBE_DESCS_PER_LOOP 4 #else #define RTE_IXGBE_DESCS_PER_LOOP 1 #endif