x86 vPMD will be disabled if currently platform does not support SSE4.1. This is the prework to enable vPMD ptype offload where SSE4.1 instrunctions will be involved.
Signed-off-by: Qi Zhang <qi.z.zh...@intel.com> --- drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c b/drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c index a7bc199..fbbd872 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c +++ b/drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c @@ -652,5 +652,9 @@ ixgbe_txq_vec_setup(struct ixgbe_tx_queue *txq) int __attribute__((cold)) ixgbe_rx_vec_dev_conf_condition_check(struct rte_eth_dev *dev) { + /* need SSE4.1 support */ + if (!rte_cpu_get_flag_enabled(RTE_CPUFLAG_SSE4_1)) + return -1; + return ixgbe_rx_vec_dev_conf_condition_check_default(dev); } -- 2.7.4