From mboxrd@z Thu Jan 1 00:00:00 1970 From: Qi Zhang Subject: [PATCH v4 1/2] net/ixgbe: add SSE4.1 support to vPMD's minimum requirement Date: Tue, 13 Jun 2017 04:58:25 -0400 Message-ID: <1497344306-24626-1-git-send-email-qi.z.zhang@intel.com> References: <1494991243-21940-1-git-send-email-qi.z.zhang@intel.com> Cc: dev@dpdk.org, wenzhuo.lu@intel.com, helin.zhang@intel.com, Qi Zhang To: konstantin.ananyev@intel.com, ferruh.yigit@intel.com Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 910D35583 for ; Tue, 13 Jun 2017 18:05:16 +0200 (CEST) In-Reply-To: <1494991243-21940-1-git-send-email-qi.z.zhang@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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