Skip to contentSkip to conversation

Remove SSE from some Intel drivers

PATCH Superseded Ciara Loftus 3 participants 22 messages Aug 25, 2025 – Jan 9

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Remove SSE from some Intel drivers

This patch removes the SSE Rx and Tx paths from the i40e, iavf and ice driverss. Each of these drivers have faster vector paths (AVX2 and AVX-512) which have feature parity with the SSE paths. In environments where AVX2 or AVX-512 are not supported, the scalar path will still be used, which also has feature parity.

This series is intended for the next-net-intel tree.

Ciara Loftus (4):
net/i40e: remove SSE vector path
net/iavf: remove SSE vector path
net/ice: remove SSE vector path
doc: add release note entry for SSE removal

 doc/guides/rel_notes/release_25_11.rst      |    5 +
 drivers/net/intel/i40e/i40e_rxtx.c          |   57 +-
 drivers/net/intel/i40e/i40e_rxtx_vec_avx2.c |   26 +
 drivers/net/intel/i40e/i40e_rxtx_vec_sse.c  |  723 ----------
 drivers/net/intel/i40e/meson.build          |    1 -
 drivers/net/intel/iavf/iavf_rxtx.c          |   46 +-
 drivers/net/intel/iavf/iavf_rxtx.h          |    2 -
 drivers/net/intel/iavf/iavf_rxtx_vec_avx2.c |   27 +
 drivers/net/intel/iavf/iavf_rxtx_vec_sse.c  | 1395 -------------------
 drivers/net/intel/iavf/meson.build          |    1 -
 drivers/net/intel/ice/ice_rxtx.c            |   43 +-
 drivers/net/intel/ice/ice_rxtx.h            |    6 -
 drivers/net/intel/ice/ice_rxtx_vec_avx2.c   |   29 +
 drivers/net/intel/ice/ice_rxtx_vec_sse.c    |  743 ----------
 drivers/net/intel/ice/meson.build           |    1 -
 15 files changed, 158 insertions(+), 2947 deletions(-)
 delete mode 100644 drivers/net/intel/i40e/i40e_rxtx_vec_sse.c
 delete mode 100644 drivers/net/intel/iavf/iavf_rxtx_vec_sse.c
 delete mode 100644 drivers/net/intel/ice/ice_rxtx_vec_sse.c
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/4 net/i40e: remove SSE vector path

Modern x86 systems all support AVX2, if not AVX-512, so the SSE path is no longer widely used. This change will not result in any feature loss, as in the rare cases where the SSE path would have been used in the absence of AVX2 or AVX-512, the fallback scalar path will be used which has feature parity with SSE.

---
 drivers/net/intel/i40e/i40e_rxtx.c          |  57 +-
 drivers/net/intel/i40e/i40e_rxtx_vec_avx2.c |  26 +
 drivers/net/intel/i40e/i40e_rxtx_vec_sse.c  | 723 --------------------
 drivers/net/intel/i40e/meson.build          |   1 -
 4 files changed, 62 insertions(+), 745 deletions(-)
 delete mode 100644 drivers/net/intel/i40e/i40e_rxtx_vec_sse.c
drivers/net/intel/i40e/i40e_rxtx.c +36 -21
index 4c0d12c179..25d2f9753a 100644
@@ -31,6 +31,10 @@
 #include "i40e_ethdev.h"
 #include "i40e_rxtx.h"
 
+#ifdef RTE_ARCH_X86
+#include "../common/rx_vec_x86.h"
+#endif
+
 #define DEFAULT_TX_RS_THRESH   32
 #define DEFAULT_TX_FREE_THRESH 32
 
@@ -1527,6 +1531,7 @@ i40e_xmit_pkts_simple(void *tx_queue,
 	return nb_tx;
 }
 
+#ifndef RTE_ARCH_X86
 static uint16_t
 i40e_xmit_pkts_vec(void *tx_queue, struct rte_mbuf **tx_pkts,
 		   uint16_t nb_pkts)
@@ -1549,6 +1554,7 @@ i40e_xmit_pkts_vec(void *tx_queue, struct rte_mbuf **tx_pkts,
 
 	return nb_tx;
 }
+#endif
 
 /* Tx mbuf check */
 static uint16_t
@@ -2637,11 +2643,13 @@ i40e_rx_queue_release_mbufs(struct ci_rx_queue *rxq)
 {
 	uint16_t i;
 
+#ifndef RTE_ARCH_X86
 	/* SSE Vector driver has a different way of releasing mbufs. */
 	if (rxq->vector_rx) {
 		i40e_rx_queue_release_mbufs_vec(rxq);
 		return;
 	}
+#endif
 
 	if (!rxq->sw_ring) {
 		PMD_DRV_LOG(DEBUG, "Pointer to sw_ring is NULL");
@@ -3297,11 +3305,6 @@ static const struct ci_rx_path_info i40e_rx_path_infos[] = {
 	[I40E_RX_BULK_ALLOC] = { i40e_recv_pkts_bulk_alloc, "Scalar Bulk Alloc",
 		{I40E_RX_SCALAR_OFFLOADS, RTE_VECT_SIMD_DISABLED, {.bulk_alloc = true}}},
 #ifdef RTE_ARCH_X86
-	[I40E_RX_SSE] = { i40e_recv_pkts_vec, "Vector SSE",
-		{I40E_RX_VECTOR_OFFLOADS, RTE_VECT_SIMD_128, {.bulk_alloc = true}}},
-	[I40E_RX_SSE_SCATTERED] = { i40e_recv_scattered_pkts_vec, "Vector SSE Scattered",
-		{I40E_RX_VECTOR_OFFLOADS, RTE_VECT_SIMD_128,
-			{.scattered = true, .bulk_alloc = true}}},
 	[I40E_RX_AVX2] = { i40e_recv_pkts_vec_avx2, "Vector AVX2",
 		{I40E_RX_VECTOR_OFFLOADS, RTE_VECT_SIMD_256, {.bulk_alloc = true}}},
 	[I40E_RX_AVX2_SCATTERED] = { i40e_recv_scattered_pkts_vec_avx2, "Vector AVX2 Scattered",
@@ -3396,15 +3399,9 @@ i40e_set_rx_function(struct rte_eth_dev *dev)
 
 	/* Propagate information about RX function choice through all queues. */
 	if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
-		vector_rx =
-			(dev->rx_pkt_burst == i40e_recv_scattered_pkts_vec ||
-			 dev->rx_pkt_burst == i40e_recv_pkts_vec ||
-#ifdef CC_AVX512_SUPPORT
-			 dev->rx_pkt_burst == i40e_recv_scattered_pkts_vec_avx512 ||
-			 dev->rx_pkt_burst == i40e_recv_pkts_vec_avx512 ||
-#endif
-			 dev->rx_pkt_burst == i40e_recv_scattered_pkts_vec_avx2 ||
-			 dev->rx_pkt_burst == i40e_recv_pkts_vec_avx2);
+		vector_rx = ad->rx_func_type != I40E_RX_DEFAULT &&
+				ad->rx_func_type != I40E_RX_SCATTERED &&
+				ad->rx_func_type != I40E_RX_BULK_ALLOC;
 
 		for (i = 0; i < dev->data->nb_rx_queues; i++) {
 			struct ci_rx_queue *rxq = dev->data->rx_queues[i];
@@ -3507,12 +3504,9 @@ i40e_set_tx_function(struct rte_eth_dev *dev)
 				dev->tx_pkt_burst = i40e_xmit_pkts;
 #endif
 			} else {
-				PMD_INIT_LOG(DEBUG, "Using %sVector Tx (port %d).",
-					     ad->tx_simd_width == RTE_VECT_SIMD_256 ? "avx2 " : "",
+				PMD_INIT_LOG(DEBUG, "Using avx2 Vector Tx (port %d).",
 					     dev->data->port_id);
-				dev->tx_pkt_burst = ad->tx_simd_width == RTE_VECT_SIMD_256 ?
-						    i40e_xmit_pkts_vec_avx2 :
-						    i40e_xmit_pkts_vec;
+				dev->tx_pkt_burst = i40e_xmit_pkts_vec_avx2;
 				dev->recycle_tx_mbufs_reuse = i40e_recycle_tx_mbufs_reuse_vec;
 			}
 #else /* RTE_ARCH_X86 */
@@ -3550,7 +3544,6 @@ static const struct {
 	{ i40e_xmit_pkts_vec_avx512, "Vector AVX512" },
 #endif
 	{ i40e_xmit_pkts_vec_avx2, "Vector AVX2" },
-	{ i40e_xmit_pkts_vec,      "Vector SSE" },
 #elif defined(RTE_ARCH_ARM64)
 	{ i40e_xmit_pkts_vec,      "Vector Neon" },
 #elif defined(RTE_ARCH_PPC_64)
@@ -3650,7 +3643,29 @@ i40e_set_default_pctype_table(struct rte_eth_dev *dev)
 	}
 }
 
-#ifndef RTE_ARCH_X86
+#ifdef RTE_ARCH_X86
+enum rte_vect_max_simd
+i40e_get_max_simd_bitwidth(void)
+{
+	return ci_get_x86_max_simd_bitwidth();
+}
+
+uint16_t
+i40e_recv_pkts_vec(void __rte_unused * rx_queue,
+		   struct rte_mbuf __rte_unused * *rx_pkts,
+		   uint16_t __rte_unused nb_pkts)
+{
+	return 0;
+}
+
+uint16_t
+i40e_recv_scattered_pkts_vec(void __rte_unused * rx_queue,
+			     struct rte_mbuf __rte_unused * *rx_pkts,
+			     uint16_t __rte_unused nb_pkts)
+{
+	return 0;
+}
+#else
 uint16_t
 i40e_recv_pkts_vec_avx2(void __rte_unused *rx_queue,
 			struct rte_mbuf __rte_unused **rx_pkts,
drivers/net/intel/i40e/i40e_rxtx_vec_avx2.c +26 -0
index aeb2756e7a..8822f4a9ac 100644
@@ -820,3 +820,29 @@ i40e_xmit_pkts_vec_avx2(void *tx_queue, struct rte_mbuf **tx_pkts,
 
 	return nb_tx;
 }
+
+void __rte_cold
+i40e_rx_queue_release_mbufs_vec(struct ci_rx_queue *rxq)
+{
+	_i40e_rx_queue_release_mbufs_vec(rxq);
+}
+
+int __rte_cold
+i40e_rxq_vec_setup(struct ci_rx_queue *rxq)
+{
+	rxq->vector_rx = 1;
+	rxq->mbuf_initializer = ci_rxq_mbuf_initializer(rxq->port_id);
+	return 0;
+}
+
+int __rte_cold
+i40e_txq_vec_setup(struct ci_tx_queue *txq __rte_unused)
+{
+	return 0;
+}
+
+int __rte_cold
+i40e_rx_vec_dev_conf_condition_check(struct rte_eth_dev *dev)
+{
+	return i40e_rx_vec_dev_conf_condition_check_default(dev);
+}
drivers/net/intel/i40e/i40e_rxtx_vec_sse.c deleted +0 -723

723 lines not on this page · raw message

drivers/net/intel/i40e/meson.build +0 -1
index 49e7f899e6..bccae1ffc1 100644
@@ -37,7 +37,6 @@ testpmd_sources = files('i40e_testpmd.c')
 deps += ['hash']
 
 if arch_subdir == 'x86'
-    sources += files('i40e_rxtx_vec_sse.c')
     sources_avx2 += files('i40e_rxtx_vec_avx2.c')
     sources_avx512 += files('i40e_rxtx_vec_avx512.c')
 elif arch_subdir == 'ppc'
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/4 net/iavf: remove SSE vector path

In reply to Ciara Loftus

Modern x86 systems all support AVX2, if not AVX-512, so the SSE path is no longer widely used. This change will not result in any feature loss, as in the rare cases where the SSE path would have been used in the absence of AVX2 or AVX-512, the fallback scalar path will be used which has feature parity with SSE.

---
 drivers/net/intel/iavf/iavf_rxtx.c          |   46 +-
 drivers/net/intel/iavf/iavf_rxtx.h          |    2 -
 drivers/net/intel/iavf/iavf_rxtx_vec_avx2.c |   27 +
 drivers/net/intel/iavf/iavf_rxtx_vec_sse.c  | 1395 -------------------
 drivers/net/intel/iavf/meson.build          |    1 -
 5 files changed, 42 insertions(+), 1429 deletions(-)
 delete mode 100644 drivers/net/intel/iavf/iavf_rxtx_vec_sse.c
drivers/net/intel/iavf/iavf_rxtx.c +15 -31
index ab44558a85..7194a2646f 100644
@@ -34,6 +34,10 @@
 #include "iavf_ipsec_crypto.h"
 #include "rte_pmd_iavf.h"
 
+#ifdef RTE_ARCH_X86
+#include "../common/rx_vec_x86.h"
+#endif
+
 #define GRE_CHECKSUM_PRESENT	0x8000
 #define GRE_KEY_PRESENT		0x2000
 #define GRE_SEQUENCE_PRESENT	0x1000
@@ -384,9 +388,6 @@ release_rxq_mbufs(struct ci_rx_queue *rxq)
 static const
 struct iavf_rxq_ops iavf_rxq_release_mbufs_ops[] = {
 	[IAVF_REL_MBUFS_DEFAULT].release_mbufs = release_rxq_mbufs,
-#ifdef RTE_ARCH_X86
-	[IAVF_REL_MBUFS_SSE_VEC].release_mbufs = iavf_rx_queue_release_mbufs_sse,
-#endif
 #ifdef RTE_ARCH_ARM64
 	[IAVF_REL_MBUFS_NEON_VEC].release_mbufs = iavf_rx_queue_release_mbufs_neon,
 #endif
@@ -3735,19 +3736,6 @@ static const struct ci_rx_path_info iavf_rx_path_infos[] = {
 	[IAVF_RX_BULK_ALLOC] = {iavf_recv_pkts_bulk_alloc, "Scalar Bulk Alloc",
 		{IAVF_RX_SCALAR_OFFLOADS, RTE_VECT_SIMD_DISABLED, {.bulk_alloc = true}}},
 #ifdef RTE_ARCH_X86
-	[IAVF_RX_SSE] = {iavf_recv_pkts_vec, "Vector SSE",
-		{IAVF_RX_VECTOR_OFFLOAD_OFFLOADS, RTE_VECT_SIMD_128, {.bulk_alloc = true}}},
-	[IAVF_RX_SSE_SCATTERED] = {iavf_recv_scattered_pkts_vec, "Vector Scattered SSE",
-		{IAVF_RX_VECTOR_OFFLOADS | RTE_ETH_RX_OFFLOAD_SCATTER, RTE_VECT_SIMD_128,
-			{.scattered = true, .bulk_alloc = true}}},
-	[IAVF_RX_SSE_FLEX_RXD] = {iavf_recv_pkts_vec_flex_rxd, "Vector Flex SSE",
-		{IAVF_RX_VECTOR_OFFLOAD_FLEX_OFFLOADS, RTE_VECT_SIMD_128,
-			{.flex_desc = true, .bulk_alloc = true}}},
-	[IAVF_RX_SSE_SCATTERED_FLEX_RXD] = {
-		iavf_recv_scattered_pkts_vec_flex_rxd, "Vector Scattered SSE Flex",
-		{IAVF_RX_VECTOR_OFFLOAD_FLEX_OFFLOADS | RTE_ETH_RX_OFFLOAD_SCATTER,
-			RTE_VECT_SIMD_128,
-			{.scattered = true, .flex_desc = true, .bulk_alloc = true}}},
 	[IAVF_RX_AVX2] = {iavf_recv_pkts_vec_avx2, "Vector AVX2",
 		{IAVF_RX_VECTOR_OFFLOADS, RTE_VECT_SIMD_256, {.bulk_alloc = true}}},
 	[IAVF_RX_AVX2_SCATTERED] = {iavf_recv_scattered_pkts_vec_avx2, "Vector Scattered AVX2",
@@ -3838,7 +3826,6 @@ static const struct {
 	[IAVF_TX_DISABLED] = {iavf_xmit_pkts_no_poll, "Disabled"},
 	[IAVF_TX_DEFAULT] = {iavf_xmit_pkts, "Scalar"},
 #ifdef RTE_ARCH_X86
-	[IAVF_TX_SSE] = {iavf_xmit_pkts_vec, "Vector SSE"},
 	[IAVF_TX_AVX2] = {iavf_xmit_pkts_vec_avx2, "Vector AVX2"},
 	[IAVF_TX_AVX2_OFFLOAD] = {iavf_xmit_pkts_vec_avx2_offload,
 		"Vector AVX2 Offload"},
@@ -3990,6 +3977,14 @@ iavf_xmit_pkts_check(void *tx_queue, struct rte_mbuf **tx_pkts,
 	return iavf_tx_pkt_burst_ops[tx_func_type].pkt_burst(tx_queue, tx_pkts, good_pkts);
 }
 
+#ifdef RTE_ARCH_X86
+enum rte_vect_max_simd
+iavf_get_max_simd_bitwidth(void)
+{
+	return ci_get_x86_max_simd_bitwidth();
+}
+#endif
+
 /* choose rx function*/
 void
 iavf_set_rx_function(struct rte_eth_dev *dev)
@@ -4058,14 +4053,13 @@ iavf_set_tx_function(struct rte_eth_dev *dev)
 {
 	struct iavf_adapter *adapter =
 		IAVF_DEV_PRIVATE_TO_ADAPTER(dev->data->dev_private);
-	enum iavf_tx_func_type tx_func_type;
+	enum iavf_tx_func_type tx_func_type = IAVF_TX_DEFAULT;
 	int mbuf_check = adapter->devargs.mbuf_check;
 	int no_poll_on_link_down = adapter->devargs.no_poll_on_link_down;
 #ifdef RTE_ARCH_X86
 	struct ci_tx_queue *txq;
 	int i;
 	int check_ret;
-	bool use_sse = false;
 	bool use_avx2 = false;
 	bool use_avx512 = false;
 	enum rte_vect_max_simd tx_simd_path = iavf_get_max_simd_bitwidth();
@@ -4073,23 +4067,13 @@ iavf_set_tx_function(struct rte_eth_dev *dev)
 	check_ret = iavf_tx_vec_dev_check(dev);
 
 	if (check_ret >= 0 &&
-	    rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_128) {
-		/* SSE not support offload path yet. */
-		if (check_ret == IAVF_VECTOR_PATH) {
-			use_sse = true;
-		}
-
+	    rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_256) {
 		use_avx2 = tx_simd_path == RTE_VECT_SIMD_256;
 		use_avx512 = tx_simd_path == RTE_VECT_SIMD_512;
 
-		if (!use_sse && !use_avx2 && !use_avx512)
+		if (!use_avx2 && !use_avx512)
 			goto normal;
 
-		if (use_sse) {
-			PMD_DRV_LOG(DEBUG, "Using Vector Tx (port %d).",
-				    dev->data->port_id);
-			tx_func_type = IAVF_TX_SSE;
-		}
 		if (use_avx2) {
 			if (check_ret == IAVF_VECTOR_PATH) {
 				tx_func_type = IAVF_TX_AVX2;
drivers/net/intel/iavf/iavf_rxtx.h +0 -2
index 723c30d05b..123d477a08 100644
@@ -640,8 +640,6 @@ uint8_t iavf_proto_xtr_type_to_rxdid(uint8_t xtr_type);
 
 void iavf_set_default_ptype_table(struct rte_eth_dev *dev);
 void iavf_tx_queue_release_mbufs_avx512(struct ci_tx_queue *txq);
-void iavf_rx_queue_release_mbufs_sse(struct ci_rx_queue *rxq);
-void iavf_tx_queue_release_mbufs_sse(struct ci_tx_queue *txq);
 void iavf_rx_queue_release_mbufs_neon(struct ci_rx_queue *rxq);
 enum rte_vect_max_simd iavf_get_max_simd_bitwidth(void);
 
drivers/net/intel/iavf/iavf_rxtx_vec_avx2.c +27 -0
index e417257086..5f09e3ec37 100644
@@ -1810,3 +1810,30 @@ iavf_xmit_pkts_vec_avx2_offload(void *tx_queue, struct rte_mbuf **tx_pkts,
 {
 	return iavf_xmit_pkts_vec_avx2_common(tx_queue, tx_pkts, nb_pkts, true);
 }
+
+int __rte_cold
+iavf_txq_vec_setup(struct ci_tx_queue *txq)
+{
+	txq->vector_tx = true;
+	return 0;
+}
+
+int __rte_cold
+iavf_rxq_vec_setup(struct ci_rx_queue *rxq)
+{
+	rxq->rel_mbufs_type = IAVF_REL_MBUFS_SSE_VEC;
+	rxq->mbuf_initializer = ci_rxq_mbuf_initializer(rxq->port_id);
+	return 0;
+}
+
+int __rte_cold
+iavf_rx_vec_dev_check(struct rte_eth_dev *dev)
+{
+	return iavf_rx_vec_dev_check_default(dev);
+}
+
+int __rte_cold
+iavf_tx_vec_dev_check(struct rte_eth_dev *dev)
+{
+	return iavf_tx_vec_dev_check_default(dev);
+}
drivers/net/intel/iavf/iavf_rxtx_vec_sse.c deleted +0 -1395

1,395 lines not on this page · raw message

drivers/net/intel/iavf/meson.build +0 -1
index 0db94d6fe6..f9576586f6 100644
@@ -27,7 +27,6 @@ sources = files(
 )
 
 if arch_subdir == 'x86'
-    sources += files('iavf_rxtx_vec_sse.c')
     sources_avx2 += files('iavf_rxtx_vec_avx2.c')
     sources_avx512 += files('iavf_rxtx_vec_avx512.c')
 elif arch_subdir == 'arm'
Signature · 1 line
2.34.1
#3 lore raw

PATCH 3/4 net/ice: remove SSE vector path

In reply to Ciara Loftus

Modern x86 systems all support AVX2, if not AVX-512, so the SSE path is no longer widely used. This change will not result in any feature loss, as in the rare cases where the SSE path would have been used in the absence of AVX2 or AVX-512, the fallback scalar path will be used which has feature parity with SSE.

---
 drivers/net/intel/ice/ice_rxtx.c          |  43 +-
 drivers/net/intel/ice/ice_rxtx.h          |   6 -
 drivers/net/intel/ice/ice_rxtx_vec_avx2.c |  29 +
 drivers/net/intel/ice/ice_rxtx_vec_sse.c  | 743 ----------------------
 drivers/net/intel/ice/meson.build         |   1 -
 5 files changed, 49 insertions(+), 773 deletions(-)
 delete mode 100644 drivers/net/intel/ice/ice_rxtx_vec_sse.c
drivers/net/intel/ice/ice_rxtx.c +20 -23
index 7e5c0a9b29..e30d50a499 100644
@@ -9,6 +9,10 @@
 #include "ice_rxtx.h"
 #include "ice_rxtx_vec_common.h"
 
+#ifdef RTE_ARCH_X86
+#include "../common/rx_vec_x86.h"
+#endif
+
 #define ICE_TX_CKSUM_OFFLOAD_MASK (RTE_MBUF_F_TX_IP_CKSUM |		 \
 		RTE_MBUF_F_TX_L4_MASK |		 \
 		RTE_MBUF_F_TX_TCP_SEG |		 \
@@ -2464,18 +2468,14 @@ ice_dev_supported_ptypes_get(struct rte_eth_dev *dev, size_t *no_of_elements)
 		return ptypes;
 
 #ifdef RTE_ARCH_X86
-	if (dev->rx_pkt_burst == ice_recv_pkts_vec ||
-	    dev->rx_pkt_burst == ice_recv_scattered_pkts_vec ||
-#ifdef CC_AVX512_SUPPORT
-	    dev->rx_pkt_burst == ice_recv_pkts_vec_avx512 ||
-	    dev->rx_pkt_burst == ice_recv_pkts_vec_avx512_offload ||
-	    dev->rx_pkt_burst == ice_recv_scattered_pkts_vec_avx512 ||
-	    dev->rx_pkt_burst == ice_recv_scattered_pkts_vec_avx512_offload ||
-#endif
-	    dev->rx_pkt_burst == ice_recv_pkts_vec_avx2 ||
-	    dev->rx_pkt_burst == ice_recv_pkts_vec_avx2_offload ||
-	    dev->rx_pkt_burst == ice_recv_scattered_pkts_vec_avx2 ||
-	    dev->rx_pkt_burst == ice_recv_scattered_pkts_vec_avx2_offload)
+	if (ad->rx_func_type == ICE_RX_AVX2 ||
+			ad->rx_func_type == ICE_RX_AVX2_OFFLOAD ||
+			ad->rx_func_type == ICE_RX_AVX2_SCATTERED ||
+			ad->rx_func_type == ICE_RX_AVX2_SCATTERED_OFFLOAD ||
+			ad->rx_func_type == ICE_RX_AVX512 ||
+			ad->rx_func_type == ICE_RX_AVX512_OFFLOAD ||
+			ad->rx_func_type == ICE_RX_AVX512_SCATTERED ||
+			ad->rx_func_type == ICE_RX_AVX512_SCATTERED_OFFLOAD)
 		return ptypes;
 #endif
 
@@ -3479,6 +3479,12 @@ ice_tx_done_cleanup_vec(struct ci_tx_queue *txq __rte_unused,
 {
 	return -ENOTSUP;
 }
+
+enum rte_vect_max_simd
+ice_get_max_simd_bitwidth(void)
+{
+	return ci_get_x86_max_simd_bitwidth();
+}
 #endif
 
 static int
@@ -3674,11 +3680,6 @@ static const struct ci_rx_path_info ice_rx_path_infos[] = {
 	[ICE_RX_BULK_ALLOC] = {ice_recv_pkts_bulk_alloc, "Scalar Bulk Alloc",
 		{ICE_RX_SCALAR_OFFLOADS, RTE_VECT_SIMD_DISABLED, {.bulk_alloc = true}}},
 #ifdef RTE_ARCH_X86
-	[ICE_RX_SSE] = {ice_recv_pkts_vec, "Vector SSE",
-		{ICE_RX_VECTOR_OFFLOAD_OFFLOADS, RTE_VECT_SIMD_128, {.bulk_alloc = true}}},
-	[ICE_RX_SSE_SCATTERED] = {ice_recv_scattered_pkts_vec, "Vector SSE Scattered",
-		{ICE_RX_VECTOR_OFFLOAD_OFFLOADS, RTE_VECT_SIMD_128,
-			{.scattered = true, .bulk_alloc = true}}},
 	[ICE_RX_AVX2] = {ice_recv_pkts_vec_avx2, "Vector AVX2",
 		{ICE_RX_VECTOR_OFFLOADS, RTE_VECT_SIMD_256, {.bulk_alloc = true}}},
 	[ICE_RX_AVX2_SCATTERED] = {ice_recv_scattered_pkts_vec_avx2, "Vector AVX2 Scattered",
@@ -4051,12 +4052,9 @@ ice_set_tx_function(struct rte_eth_dev *dev)
 					ice_xmit_pkts_vec_avx2_offload;
 				dev->tx_pkt_prepare = ice_prep_pkts;
 			} else {
-				PMD_DRV_LOG(DEBUG, "Using %sVector Tx (port %d).",
-					    ad->tx_simd_width == RTE_VECT_SIMD_256 ? "avx2 " : "",
+				PMD_DRV_LOG(DEBUG, "Using avx2 Vector Tx (port %d).",
 					    dev->data->port_id);
-				dev->tx_pkt_burst = ad->tx_simd_width == RTE_VECT_SIMD_256 ?
-						    ice_xmit_pkts_vec_avx2 :
-						    ice_xmit_pkts_vec;
+				dev->tx_pkt_burst = ice_xmit_pkts_vec_avx2;
 			}
 		}
 
@@ -4097,7 +4095,6 @@ static const struct {
 #endif
 	{ ice_xmit_pkts_vec_avx2,         "Vector AVX2" },
 	{ ice_xmit_pkts_vec_avx2_offload, "Offload Vector AVX2" },
-	{ ice_xmit_pkts_vec,              "Vector SSE" },
 #endif
 };
 
drivers/net/intel/ice/ice_rxtx.h +0 -6
index 488ba85562..7c7e58c286 100644
@@ -251,12 +251,6 @@ int ice_rx_vec_dev_check(struct rte_eth_dev *dev);
 int ice_tx_vec_dev_check(struct rte_eth_dev *dev);
 int ice_rxq_vec_setup(struct ci_rx_queue *rxq);
 int ice_txq_vec_setup(struct ci_tx_queue *txq);
-uint16_t ice_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
-			   uint16_t nb_pkts);
-uint16_t ice_recv_scattered_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
-				     uint16_t nb_pkts);
-uint16_t ice_xmit_pkts_vec(void *tx_queue, struct rte_mbuf **tx_pkts,
-			   uint16_t nb_pkts);
 uint16_t ice_recv_pkts_vec_avx2(void *rx_queue, struct rte_mbuf **rx_pkts,
 				uint16_t nb_pkts);
 uint16_t ice_recv_pkts_vec_avx2_offload(void *rx_queue, struct rte_mbuf **rx_pkts,
drivers/net/intel/ice/ice_rxtx_vec_avx2.c +29 -0
index b952b8dddc..dbe0cac89f 100644
@@ -949,3 +949,32 @@ ice_xmit_pkts_vec_avx2_offload(void *tx_queue, struct rte_mbuf **tx_pkts,
 {
 	return ice_xmit_pkts_vec_avx2_common(tx_queue, tx_pkts, nb_pkts, true);
 }
+
+int __rte_cold
+ice_rxq_vec_setup(struct ci_rx_queue *rxq)
+{
+	if (!rxq)
+		return -1;
+
+	rxq->rx_rel_mbufs = _ice_rx_queue_release_mbufs_vec;
+	rxq->mbuf_initializer = ci_rxq_mbuf_initializer(rxq->port_id);
+	return 0;
+}
+
+int __rte_cold
+ice_txq_vec_setup(struct ci_tx_queue *txq __rte_unused)
+{
+	return 0;
+}
+
+int __rte_cold
+ice_rx_vec_dev_check(struct rte_eth_dev *dev)
+{
+	return ice_rx_vec_dev_check_default(dev);
+}
+
+int __rte_cold
+ice_tx_vec_dev_check(struct rte_eth_dev *dev)
+{
+	return ice_tx_vec_dev_check_default(dev);
+}
drivers/net/intel/ice/ice_rxtx_vec_sse.c deleted +0 -743

743 lines not on this page · raw message

drivers/net/intel/ice/meson.build +0 -1
index 8a20d0f297..293577676f 100644
@@ -31,7 +31,6 @@ else
 endif
 
 if arch_subdir == 'x86'
-    sources += files('ice_rxtx_vec_sse.c')
     sources_avx2 += files('ice_rxtx_vec_avx2.c')
     sources_avx512 += files('ice_rxtx_vec_avx512.c')
 endif
Signature · 1 line
2.34.1
#4 lore raw

Re: [PATCH 3/4] net/ice: remove SSE vector path

Hi Ciara Loftus,

We may need some legacy support for the SSE path for earlier systems. Or it will not be a problem ?
As you specified that modern x86 systems all support AVX2, if not AVX-512. Still, we might need some type of support for the SSE path.

Best Regards,
Khadem

Quoted 8 lines · Ciara Loftus

Modern x86 systems all support AVX2, if not AVX-512, so the SSE path is no longer widely used. This change will not result in any feature loss, as in the rare cases where the SSE path would have been used in the absence of AVX2 or AVX-512, the fallback scalar path will be used which has feature parity with SSE.

---

#5 lore raw

Re: [PATCH 3/4] net/ice: remove SSE vector path

Quoted 8 lines · Khadem Ullah

Hi Ciara Loftus,
We may need some legacy support for the SSE path for earlier systems. Or it will not be a problem ?
As you specified that modern x86 systems all support AVX2, if not AVX-512.
Still, we might need some type of support for the SSE path. Best Regards,
Khadem

Hi Kadem,

can you perhaps share what systems you are using that do not have AVX2 support? Do you do new deployments with latest DPDK on those systems? However, if it helps, we can defer this patch till after 25.11 release, so that we have one more LTS with SSE support still in it. That would mean that we have a supported DPDK release with SSE in it until potentially end of 2028. As it stands, even if this patch goes into the release, 24.11 will be supported till end of 2027.

/Bruce

Quoted 17 lines

On Mon, Aug 25, 2025 at 5:36 PM Ciara Loftus
<[1][email protected]> wrote:

Modern x86 systems all support AVX2, if not AVX-512, so the SSE path is no longer widely used. This change will not result in any feature loss, as in the rare cases where the SSE path would have been used in
the absence of AVX2 or AVX-512, the fallback scalar path will be used
which has feature parity with SSE.

---

References

1. mailto:[email protected]
2. mailto:[email protected]

#6 lore raw

Re: [PATCH 3/4] net/ice: remove SSE vector path

Hi Bruce,

Thanks for the feedback!

I have checked at my end, most of our systems (Intel(R) Xeon(R), AMD EPYC) do support sse, avx, and avx2. I was talking about general availability. It means, newer features will not be added to the SSE path and as you mentioned that LTS 24.11 will provide support till the end of 2027. Applications that use ice SSE paths can benefit from it.

Best Regards,
Khadem

Quoted 14 lines · Bruce Richardson

Hi Kadem,

can you perhaps share what systems you are using that do not have AVX2 support? Do you do new deployments with latest DPDK on those systems? However, if it helps, we can defer this patch till after 25.11 release, so that we have one more LTS with SSE support still in it. That would mean that we have a supported DPDK release with SSE in it until potentially end of 2028. As it stands, even if this patch goes into the release, 24.11 will be supported till end of 2027.

/Bruce

#7 lore raw

Re: [PATCH 3/4] net/ice: remove SSE vector path

Quoted 2 lines · Khadem Ullah

Hi Bruce,
Thanks for the feedback!

No problem.
BTW: Please don't top-post in replying - it's best practice to put the reply below the text you are replying to. Thanks.

Quoted 4 lines

I have checked at my end, most of our systems (Intel(R) Xeon(R), AMD EPYC)
do support sse, avx, and avx2. I was talking about general availability.

AVX2 was first available in systems starting in 2013, (and AMD systems since 2015), so at this point it's been around a long time. The SSE code paths in the drivers will only be used by systems which do not have AVX2 on them - which should be relatively rare, I hope, at this point. There are no features in the SSE driver that are not available in the AVX2 one, so, I'm not aware of any reason why one would need to use the SSE code path in a deployment of DPDK.

Quoted 3 lines

It means, newer features will not be added to the SSE path and as you mentioned that LTS 24.11 will provide support till the end of 2027. Applications that use ice SSE paths can benefit from it.

Even without this patch, there will be no features added to the SSE code paths in the drivers. Any new additions would just be to the AVX2 and AVX-512 code paths. Even for systems without AVX2, if the SSE path is removed the driver will fall-back to the scalar paths, which have far more features available in them than the SSE codepaths, which were simplified for performance reasons.

/Bruce

Quoted 23 lines

Best Regards,
Khadem
On Tue, Aug 26, 2025 at 12:54 PM Bruce Richardson <[1][email protected]> wrote:

Hi Kadem,
can you perhaps share what systems you are using that do not have AVX2
support? Do you do new deployments with latest DPDK on those systems?
However, if it helps, we can defer this patch till after 25.11 release, so that we have one more LTS with SSE support still in it. That
would mean that we have a supported DPDK release with SSE in it until
potentially end of 2028. As it stands, even if this patch goes into the
release, 24.11 will be supported till end of 2027. /Bruce

References

1. mailto:[email protected]

#8 lore raw

Re: [PATCH 3/4] net/ice: remove SSE vector path

Quoted 40 lines · Bruce Richardson
Quoted 4 lines

No problem.
BTW: Please don't top-post in replying - it's best practice to put the reply below the text you are replying to. Thanks.

Ohh, I got it :)
I was triming the quotes when replying but in top-post format, will always try to avoid top-post in replying in future!

Quoted 3 lines

AVX2 was first available in systems starting in 2013, (and AMD systems since 2015), so at this point it's been around a long time. The SSE code paths in the drivers will only be used by systems which do not have AVX2

on

Quoted 1 line

them - which should be relatively rare, I hope, at this point. There are

no

Quoted 1 line

features in the SSE driver that are not available in the AVX2 one, so,

I'm

Quoted 2 lines

not aware of any reason why one would need to use the SSE code path in a deployment of DPDK.

Yes, I think all feaures in SSE do already exists in AVX2 paths.

Quoted 4 lines

Even without this patch, there will be no features added to the SSE code paths in the drivers. Any new additions would just be to the AVX2 and AVX-512 code paths. Even for systems without AVX2, if the SSE path is removed the driver will fall-back to the scalar paths, which have far

more

Quoted 1 line

features available in them than the SSE codepaths, which were simplified

for

Quoted 1 line

performance reasons.

Thanks for the update. I could not exaclty got the meaning of fall-back to the scalar path.
Does that means that the driver automatically switches to the scalar path ?
which is slower but includes all the necessary features that were simplified in the AVX2 path.
I believe AVX2 provides an average performance much better for small frame or packet size (about 14 Gbps).

Quoted 5 lines

Reagards,
Khadem

--

#9 lore raw

Re: [PATCH 3/4] net/ice: remove SSE vector path

Quoted 35 lines · Khadem Ullah
Quoted 3 lines · Bruce Richardson

No problem.
BTW: Please don't top-post in replying - it's best practice to put the reply below the text you are replying to. Thanks.

Ohh, I got it :)
I was triming the quotes when replying but in top-post format,

will always try to avoid top-post in replying in future!

Quoted 1 line

AVX2 was first available in systems starting in 2013, (and AMD

systems

Quoted 1 line

since 2015), so at this point it's been around a long time. The SSE

code

Quoted 1 line

paths in the drivers will only be used by systems which do not have

AVX2 on

Quoted 1 line

them - which should be relatively rare, I hope, at this point. There

are no

Quoted 1 line

features in the SSE driver that are not available in the AVX2 one,

so, I'm

Quoted 1 line

not aware of any reason why one would need to use the SSE code path

in a

Quoted 1 line

deployment of DPDK.

Yes, I think all feaures in SSE do already exists in AVX2 paths.

Quoted 1 line

Even without this patch, there will be no features added to the SSE

code

Quoted 3 lines

paths in the drivers. Any new additions would just be to the AVX2 and AVX-512 code paths. Even for systems without AVX2, if the SSE path is removed the driver will fall-back to the scalar paths, which have far

more

Quoted 1 line

features available in them than the SSE codepaths, which were

simplified for

Quoted 1 line

performance reasons.

Quoted 8 lines

Thanks for the update. I could not exaclty got the meaning of fall-back to the scalar path.
Does that means that the driver automatically switches to the scalar path ?
which is slower but includes all the necessary features that were simplified in the AVX2 path.
I believe AVX2 provides an average performance much better for small frame or packet size (about 14 Gbps).

Yes, AXV2 and AVX-512 code paths have far higher performance than the scalar paths. However, that performance comes at the cost of not supporting all features. What the drivers then do at initialization time, is they check the offloads requested by the app, and then select the highest performance code path that can support those requested offloads. The whole process should be transparent to the user - they just get the best performance possible for their running conditions...

/Bruce

#10 lore raw

Re: [PATCH 3/4] net/ice: remove SSE vector path

Quoted 11 lines · Bruce Richardson

Yes, AXV2 and AVX-512 code paths have far higher performance than the scalar paths. However, that performance comes at the cost of not supporting all features. What the drivers then do at initialization time, is they check the offloads requested by the app, and then select the highest performance code path that can support those requested offloads. The whole process should be transparent to the user - they just get the best performance possible for their running conditions...

/Bruce

Got it!
Thanks for the help.

Regards,
Khadem

#11 lore raw

Re: [PATCH 3/4] net/ice: remove SSE vector path

In reply to Bruce Richardson
Quoted 9 lines · Bruce Richardson
Quoted 2 lines · Khadem Ullah

Hi Bruce,
Thanks for the feedback!

No problem.
BTW: Please don't top-post in replying - it's best practice to put the reply below the text you are replying to. Thanks.

Ohh, I got it :)

I was trimming the quotes when replying but in top-post format, I will always try to avoid a top-post reply in future!

Quoted 7 lines

AVX2 was first available in systems starting in 2013, (and AMD systems since 2015), so at this point it's been around a long time. The SSE code paths in the drivers will only be used by systems which do not have AVX2 on them - which should be relatively rare, I hope, at this point. There are no features in the SSE driver that are not available in the AVX2 one, so, I'm not aware of any reason why one would need to use the SSE code path in a deployment of DPDK

Yes, I think all features in SSE do already exist in AVX2 paths.

Quoted 11 lines

Even without this patch, there will be no features added to the SSE code paths in the drivers. Any new additions would just be to the AVX2 and AVX-512 code paths. Even for systems without AVX2, if the SSE path is removed the driver will fall-back to the scalar paths, which have far more features available in them than the SSE codepaths, which were simplified for
performance reasons.

/Bruce

Thanks for the update. I could not exactly get the meaning of fall-back to the scalar path.
Does that mean that the driver automatically switches to the scalar path ? which is slower but includes all the necessary features that were simplified in the AVX2 path.
I believe AVX2 provides an average performance much better for small frame or packet size (about 14 Gbps).

Please forget the previous email, some mess up with practicing not doing top-posts.
Hope this will be fine :)
Regards,
Khadem

#12 lore raw

PATCH 4/4 doc: add release note entry for SSE removal

In reply to Ciara Loftus

The SSE paths have been removed from the i40e, iavf and ice Intel drivers. Add a release note documenting their removal.

---
 doc/guides/rel_notes/release_25_11.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/rel_notes/release_25_11.rst +5 -0
index ccad6d89ff..d2749f2e4b 100644
@@ -55,6 +55,11 @@ New Features
      Also, make sure to start the actual text at the margin.
      =======================================================
 
+* **Removed the SSE vector paths from some Intel drivers.**
+
+  The SSE path was not widely used, so it was removed from the i40e,
+  iavf and ice drivers.
+
 
 Removed Items
 -------------
Signature · 1 line
2.34.1
#13 lore raw

Re: [PATCH 4/4] doc: add release note entry for SSE removal

Quoted 15 lines · Ciara Loftus

The SSE paths have been removed from the i40e, iavf and ice Intel drivers. Add a release note documenting their removal.

---
 doc/guides/rel_notes/release_25_11.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/rel_notes/release_25_11.rst +0 -0
index ccad6d89ff..d2749f2e4b 100644
@@ -55,6 +55,11 @@ New Features
      Also, make sure to start the actual text at the margin.

doc/guides/rel_notes/release_25_11.rst New Features · line 65

Quoted 10 lines
doc/guides/rel_notes/release_25_11.rst +5 -0
      =======================================================
 
+* **Removed the SSE vector paths from some Intel drivers.**
+
+  The SSE path was not widely used, so it was removed from the i40e,
+  iavf and ice drivers.
+
 
 Removed Items
 -------------

I think the deprecation notice can be removed, too.

Also, like with the cover letter, it's worth explaining that the SSE paths are replaced by the AVX2 and AVX-512 paths which offer better performance.

/Bruce

#14 lore raw
In reply to Ciara Loftus
Quoted 8 lines · Ciara Loftus

This patch removes the SSE Rx and Tx paths from the i40e, iavf and ice driverss. Each of these drivers have faster vector paths (AVX2 and AVX-512) which have feature parity with the SSE paths. In environments where AVX2 or AVX-512 are not supported, the scalar path will still be used, which also has feature parity.

This series is intended for the next-net-intel tree.

I'm going to hopefully take the Tx path selection logic patchset first, so this set should be rebased on top of the v2 of that set.

Thanks,
/Bruce

#15 lore raw

v2 cover Remove SSE Rx/Tx paths from some Intel drivers

In reply to Ciara Loftus

This patch removes the SSE Rx and Tx paths from the i40e, iavf and ice drivers. Each of these drivers have faster vector paths (AVX2 and AVX-512) which have feature parity with the SSE paths. In environments where AVX2 or AVX-512 are not supported, the scalar path will still be used, which also has feature parity.

This series is intended for the next-net-intel tree.

v2:
* Remove deprecation notice
* Provide more detailed explanation in the release notes.
* Usage of function type enum instead of pkt burst pointer in the supported_ptypes_get functions (simplify the logic by removing #ifdefs)
* More renaming in iavf to remove all mentions of SSE
* Removal of IAVF_REL_MBUFS_AVX512_VEC enum value as it's not used

Ciara Loftus (5):
net/i40e: remove SSE vector path
net/iavf: remove SSE vector path
net/ice: remove SSE vector path
doc: add release note entry for SSE removal
doc: remove deprecation notice of SSE in some Intel drivers

 doc/guides/rel_notes/deprecation.rst        |    8 -
 doc/guides/rel_notes/release_26_03.rst      |    7 +
 drivers/net/intel/i40e/i40e_ethdev.h        |    3 -
 drivers/net/intel/i40e/i40e_rxtx.c          |   72 +-
 drivers/net/intel/i40e/i40e_rxtx_vec_avx2.c |   20 +
 drivers/net/intel/i40e/i40e_rxtx_vec_sse.c  |  717 ----------
 drivers/net/intel/i40e/meson.build          |    1 -
 drivers/net/intel/iavf/iavf.h               |    6 +-
 drivers/net/intel/iavf/iavf_rxtx.c          |   65 +-
 drivers/net/intel/iavf/iavf_rxtx.h          |    9 +-
 drivers/net/intel/iavf/iavf_rxtx_vec_avx2.c |   33 +
 drivers/net/intel/iavf/iavf_rxtx_vec_sse.c  | 1395 -------------------
 drivers/net/intel/iavf/meson.build          |    1 -
 drivers/net/intel/ice/ice_ethdev.h          |    3 -
 drivers/net/intel/ice/ice_rxtx.c            |   74 +-
 drivers/net/intel/ice/ice_rxtx.h            |    6 -
 drivers/net/intel/ice/ice_rxtx_vec_avx2.c   |   23 +
 drivers/net/intel/ice/ice_rxtx_vec_sse.c    |  737 ----------
 drivers/net/intel/ice/meson.build           |    1 -
 19 files changed, 153 insertions(+), 3028 deletions(-)
 delete mode 100644 drivers/net/intel/i40e/i40e_rxtx_vec_sse.c
 delete mode 100644 drivers/net/intel/iavf/iavf_rxtx_vec_sse.c
 delete mode 100644 drivers/net/intel/ice/ice_rxtx_vec_sse.c
Signature · 1 line
2.43.0
#16 lore raw

PATCH v2 1/5 net/i40e: remove SSE vector path

Modern x86 systems all support AVX2, if not AVX-512, so the SSE path is no longer widely used. This change will not result in any feature loss, as in the rare cases where the SSE path would have been used in the absence of AVX2 or AVX-512, the fallback scalar path will be used which has feature parity with SSE.

---
 drivers/net/intel/i40e/i40e_ethdev.h        |   3 -
 drivers/net/intel/i40e/i40e_rxtx.c          |  72 +-
 drivers/net/intel/i40e/i40e_rxtx_vec_avx2.c |  20 +
 drivers/net/intel/i40e/i40e_rxtx_vec_sse.c  | 717 --------------------
 drivers/net/intel/i40e/meson.build          |   1 -
 5 files changed, 48 insertions(+), 765 deletions(-)
 delete mode 100644 drivers/net/intel/i40e/i40e_rxtx_vec_sse.c
drivers/net/intel/i40e/i40e_ethdev.h +0 -3
index 1fe504d0cd..e4a8317abd 100644
@@ -1231,8 +1231,6 @@ enum i40e_rx_func_type {
 	I40E_RX_DEFAULT,
 	I40E_RX_SCATTERED,
 	I40E_RX_BULK_ALLOC,
-	I40E_RX_SSE,
-	I40E_RX_SSE_SCATTERED,
 	I40E_RX_AVX2,
 	I40E_RX_AVX2_SCATTERED,
 	I40E_RX_AVX512,
@@ -1246,7 +1244,6 @@ enum i40e_rx_func_type {
 enum i40e_tx_func_type {
 	I40E_TX_DEFAULT,
 	I40E_TX_SCALAR_SIMPLE,
-	I40E_TX_SSE,
 	I40E_TX_AVX2,
 	I40E_TX_AVX512,
 	I40E_TX_NEON,
drivers/net/intel/i40e/i40e_rxtx.c +28 -44

132 lines not on this page · raw message

drivers/net/intel/i40e/i40e_rxtx_vec_avx2.c +20 -0
index aeb2756e7a..4e398b3140 100644
@@ -820,3 +820,23 @@ i40e_xmit_pkts_vec_avx2(void *tx_queue, struct rte_mbuf **tx_pkts,
 
 	return nb_tx;
 }
+
+void __rte_cold
+i40e_rx_queue_release_mbufs_vec(struct ci_rx_queue *rxq)
+{
+	_i40e_rx_queue_release_mbufs_vec(rxq);
+}
+
+int __rte_cold
+i40e_rxq_vec_setup(struct ci_rx_queue *rxq)
+{
+	rxq->vector_rx = 1;
+	rxq->mbuf_initializer = ci_rxq_mbuf_initializer(rxq->port_id);
+	return 0;
+}
+
+int __rte_cold
+i40e_rx_vec_dev_conf_condition_check(struct rte_eth_dev *dev)
+{
+	return i40e_rx_vec_dev_conf_condition_check_default(dev);
+}
drivers/net/intel/i40e/i40e_rxtx_vec_sse.c deleted +0 -717

717 lines not on this page · raw message

drivers/net/intel/i40e/meson.build +0 -1
index 49e7f899e6..bccae1ffc1 100644
@@ -37,7 +37,6 @@ testpmd_sources = files('i40e_testpmd.c')
 deps += ['hash']
 
 if arch_subdir == 'x86'
-    sources += files('i40e_rxtx_vec_sse.c')
     sources_avx2 += files('i40e_rxtx_vec_avx2.c')
     sources_avx512 += files('i40e_rxtx_vec_avx512.c')
 elif arch_subdir == 'ppc'
Signature · 1 line
2.43.0
#17 lore raw

PATCH v2 2/5 net/iavf: remove SSE vector path

In reply to Ciara Loftus

Modern x86 systems all support AVX2, if not AVX-512, so the SSE path is no longer widely used. This change will not result in any feature loss, as in the rare cases where the SSE path would have been used in the absence of AVX2 or AVX-512, the fallback scalar path will be used which has feature parity with SSE.

---
 drivers/net/intel/iavf/iavf.h               |    6 +-
 drivers/net/intel/iavf/iavf_rxtx.c          |   65 +-
 drivers/net/intel/iavf/iavf_rxtx.h          |    9 +-
 drivers/net/intel/iavf/iavf_rxtx_vec_avx2.c |   33 +
 drivers/net/intel/iavf/iavf_rxtx_vec_sse.c  | 1395 -------------------
 drivers/net/intel/iavf/meson.build          |    1 -
 6 files changed, 51 insertions(+), 1458 deletions(-)
 delete mode 100644 drivers/net/intel/iavf/iavf_rxtx_vec_sse.c
drivers/net/intel/iavf/iavf.h +1 -5
index 921bf0a607..cbd7f036f3 100644
@@ -328,10 +328,7 @@ enum iavf_rx_func_type {
 	IAVF_RX_SCATTERED_FLEX_RXD,
 	IAVF_RX_BULK_ALLOC,
 	IAVF_RX_BULK_ALLOC_FLEX_RXD,
-	IAVF_RX_SSE,
-	IAVF_RX_SSE_SCATTERED,
-	IAVF_RX_SSE_FLEX_RXD,
-	IAVF_RX_SSE_SCATTERED_FLEX_RXD,
+	IAVF_RX_NEON,
 	IAVF_RX_AVX2,
 	IAVF_RX_AVX2_SCATTERED,
 	IAVF_RX_AVX2_OFFLOAD,
@@ -353,7 +350,6 @@ enum iavf_rx_func_type {
 enum iavf_tx_func_type {
 	IAVF_TX_DISABLED,
 	IAVF_TX_DEFAULT,
-	IAVF_TX_SSE,
 	IAVF_TX_AVX2,
 	IAVF_TX_AVX2_OFFLOAD,
 	IAVF_TX_AVX512,
drivers/net/intel/iavf/iavf_rxtx.c +14 -51

101 lines not on this page · raw message

drivers/net/intel/iavf/iavf_rxtx.h +3 -6
index bff456e509..e1f78dcde0 100644
@@ -323,9 +323,8 @@ struct iavf_32b_rx_flex_desc_comms_ipsec {
 
 enum iavf_rxtx_rel_mbufs_type {
 	IAVF_REL_MBUFS_DEFAULT		= 0,
-	IAVF_REL_MBUFS_SSE_VEC		= 1,
-	IAVF_REL_MBUFS_AVX512_VEC	= 2,
-	IAVF_REL_MBUFS_NEON_VEC		= 3,
+	IAVF_REL_MBUFS_VEC		= 1,
+	IAVF_REL_MBUFS_NEON_VEC		= 2,
 };
 
 /* Receive Flex Descriptor profile IDs: There are a total
@@ -654,9 +653,7 @@ int iavf_txq_vec_setup_avx512(struct ci_tx_queue *txq);
 uint8_t iavf_proto_xtr_type_to_rxdid(uint8_t xtr_type);
 
 void iavf_set_default_ptype_table(struct rte_eth_dev *dev);
-void iavf_tx_queue_release_mbufs_avx512(struct ci_tx_queue *txq);
-void iavf_rx_queue_release_mbufs_sse(struct ci_rx_queue *rxq);
-void iavf_tx_queue_release_mbufs_sse(struct ci_tx_queue *txq);
+void iavf_rx_queue_release_mbufs_vec(struct ci_rx_queue *rxq);
 void iavf_rx_queue_release_mbufs_neon(struct ci_rx_queue *rxq);
 enum rte_vect_max_simd iavf_get_max_simd_bitwidth(void);
 
drivers/net/intel/iavf/iavf_rxtx_vec_avx2.c +33 -0
index e417257086..e29958e0bc 100644
@@ -1810,3 +1810,36 @@ iavf_xmit_pkts_vec_avx2_offload(void *tx_queue, struct rte_mbuf **tx_pkts,
 {
 	return iavf_xmit_pkts_vec_avx2_common(tx_queue, tx_pkts, nb_pkts, true);
 }
+
+int __rte_cold
+iavf_txq_vec_setup(struct ci_tx_queue *txq)
+{
+	txq->vector_tx = true;
+	return 0;
+}
+
+void __rte_cold
+iavf_rx_queue_release_mbufs_vec(struct ci_rx_queue *rxq)
+{
+	_iavf_rx_queue_release_mbufs_vec(rxq);
+}
+
+int __rte_cold
+iavf_rxq_vec_setup(struct ci_rx_queue *rxq)
+{
+	rxq->rel_mbufs_type = IAVF_REL_MBUFS_VEC;
+	rxq->mbuf_initializer = ci_rxq_mbuf_initializer(rxq->port_id);
+	return 0;
+}
+
+int __rte_cold
+iavf_rx_vec_dev_check(struct rte_eth_dev *dev)
+{
+	return iavf_rx_vec_dev_check_default(dev);
+}
+
+int __rte_cold
+iavf_tx_vec_dev_check(struct rte_eth_dev *dev)
+{
+	return iavf_tx_vec_dev_check_default(dev);
+}
drivers/net/intel/iavf/iavf_rxtx_vec_sse.c deleted +0 -1395

1,395 lines not on this page · raw message

drivers/net/intel/iavf/meson.build +0 -1
index 0db94d6fe6..f9576586f6 100644
@@ -27,7 +27,6 @@ sources = files(
 )
 
 if arch_subdir == 'x86'
-    sources += files('iavf_rxtx_vec_sse.c')
     sources_avx2 += files('iavf_rxtx_vec_avx2.c')
     sources_avx512 += files('iavf_rxtx_vec_avx512.c')
 elif arch_subdir == 'arm'
Signature · 1 line
2.43.0
#18 lore raw

PATCH v2 3/5 net/ice: remove SSE vector path

In reply to Ciara Loftus

Modern x86 systems all support AVX2, if not AVX-512, so the SSE path is no longer widely used. This change will not result in any feature loss, as in the rare cases where the SSE path would have been used in the absence of AVX2 or AVX-512, the fallback scalar path will be used which has feature parity with SSE.

---
 drivers/net/intel/ice/ice_ethdev.h        |   3 -
 drivers/net/intel/ice/ice_rxtx.c          |  74 +--
 drivers/net/intel/ice/ice_rxtx.h          |   6 -
 drivers/net/intel/ice/ice_rxtx_vec_avx2.c |  23 +
 drivers/net/intel/ice/ice_rxtx_vec_sse.c  | 737 ----------------------
 drivers/net/intel/ice/meson.build         |   1 -
 6 files changed, 47 insertions(+), 797 deletions(-)
 delete mode 100644 drivers/net/intel/ice/ice_rxtx_vec_sse.c
drivers/net/intel/ice/ice_ethdev.h +0 -3
index 7fa2db1bd2..9562b2b8f1 100644
@@ -196,8 +196,6 @@ enum ice_rx_func_type {
 	ICE_RX_DEFAULT,
 	ICE_RX_SCATTERED,
 	ICE_RX_BULK_ALLOC,
-	ICE_RX_SSE,
-	ICE_RX_SSE_SCATTERED,
 	ICE_RX_AVX2,
 	ICE_RX_AVX2_SCATTERED,
 	ICE_RX_AVX2_OFFLOAD,
@@ -211,7 +209,6 @@ enum ice_rx_func_type {
 enum ice_tx_func_type {
 	ICE_TX_DEFAULT,
 	ICE_TX_SIMPLE,
-	ICE_TX_SSE,
 	ICE_TX_AVX2,
 	ICE_TX_AVX2_OFFLOAD,
 	ICE_TX_AVX512,
drivers/net/intel/ice/ice_rxtx.c +24 -50

123 lines not on this page · raw message

drivers/net/intel/ice/ice_rxtx.h +0 -6
index d7e8c1b0c4..c524e9f756 100644
@@ -278,12 +278,6 @@ void ice_select_rxd_to_pkt_fields_handler(struct ci_rx_queue *rxq,
 int ice_rx_vec_dev_check(struct rte_eth_dev *dev);
 int ice_tx_vec_dev_check(struct rte_eth_dev *dev);
 int ice_rxq_vec_setup(struct ci_rx_queue *rxq);
-uint16_t ice_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
-			   uint16_t nb_pkts);
-uint16_t ice_recv_scattered_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
-				     uint16_t nb_pkts);
-uint16_t ice_xmit_pkts_vec(void *tx_queue, struct rte_mbuf **tx_pkts,
-			   uint16_t nb_pkts);
 uint16_t ice_recv_pkts_vec_avx2(void *rx_queue, struct rte_mbuf **rx_pkts,
 				uint16_t nb_pkts);
 uint16_t ice_recv_pkts_vec_avx2_offload(void *rx_queue, struct rte_mbuf **rx_pkts,
drivers/net/intel/ice/ice_rxtx_vec_avx2.c +23 -0
index b952b8dddc..0ba1d557ca 100644
@@ -949,3 +949,26 @@ ice_xmit_pkts_vec_avx2_offload(void *tx_queue, struct rte_mbuf **tx_pkts,
 {
 	return ice_xmit_pkts_vec_avx2_common(tx_queue, tx_pkts, nb_pkts, true);
 }
+
+int __rte_cold
+ice_rxq_vec_setup(struct ci_rx_queue *rxq)
+{
+	if (!rxq)
+		return -1;
+
+	rxq->rx_rel_mbufs = _ice_rx_queue_release_mbufs_vec;
+	rxq->mbuf_initializer = ci_rxq_mbuf_initializer(rxq->port_id);
+	return 0;
+}
+
+int __rte_cold
+ice_rx_vec_dev_check(struct rte_eth_dev *dev)
+{
+	return ice_rx_vec_dev_check_default(dev);
+}
+
+int __rte_cold
+ice_tx_vec_dev_check(struct rte_eth_dev *dev)
+{
+	return ice_tx_vec_dev_check_default(dev);
+}
drivers/net/intel/ice/ice_rxtx_vec_sse.c deleted +0 -737

737 lines not on this page · raw message

drivers/net/intel/ice/meson.build +0 -1
index 8a20d0f297..293577676f 100644
@@ -31,7 +31,6 @@ else
 endif
 
 if arch_subdir == 'x86'
-    sources += files('ice_rxtx_vec_sse.c')
     sources_avx2 += files('ice_rxtx_vec_avx2.c')
     sources_avx512 += files('ice_rxtx_vec_avx512.c')
 endif
Signature · 1 line
2.43.0
#19 lore raw

PATCH v2 4/5 doc: add release note entry for SSE removal

In reply to Ciara Loftus

The SSE paths have been removed from the i40e, iavf and ice Intel drivers. Add a release note documenting their removal.

---
 doc/guides/rel_notes/release_26_03.rst | 7 +++++++
 1 file changed, 7 insertions(+)
doc/guides/rel_notes/release_26_03.rst +7 -0
index 15dabee7a1..a50f6ee231 100644
@@ -68,6 +68,13 @@ Removed Items
    Also, make sure to start the actual text at the margin.
    =======================================================
 
+* **Removed the SSE vector paths from some Intel drivers.**
+
+  The SSE path was not widely used, so it was removed from the i40e, iavf and
+  ice drivers. Each of these drivers have faster vector paths (AVX2 and
+  AVX-512) which have feature parity with the SSE paths, and a fallback scalar
+  path which also has feature parity.
+
 
 API Changes
 -----------
Signature · 1 line
2.43.0
#20 lore raw

PATCH v2 5/5 doc: remove deprecation notice of SSE in some Intel drivers

In reply to Ciara Loftus

The SSE paths in the i40e, iavf and ice Intel drivers have been removed, so this deprecation notice is no longer required.

---
 doc/guides/rel_notes/deprecation.rst | 8 --------
 1 file changed, 8 deletions(-)
doc/guides/rel_notes/deprecation.rst +0 -8
index 8653d6ca03..ac667e91a6 100644
@@ -139,11 +139,3 @@ Deprecation Notices
 * bus/vmbus: Starting DPDK 25.11, all the vmbus API defined in
   ``drivers/bus/vmbus/rte_bus_vmbus.h`` will become internal to DPDK.
   Those API functions are used internally by DPDK core and netvsc PMD.
-
-* net/intel: Drivers that have an SSE vector path alongside other vector paths,
-  namely i40e, iavf and ice, will have their SSE vector paths removed in DPDK 25.11.
-  Modern x86 systems all support AVX2, if not AVX-512,
-  so the SSE path is no longer widely used.
-  This change will not result in any feature loss,
-  as the fallback scalar paths which have feature parity with SSE
-  will be used in the cases where the SSE paths would have been used.
Signature · 1 line
2.43.0
#21 lore raw

Re: [PATCH v2 0/5] Remove SSE Rx/Tx paths from some Intel drivers

In reply to Ciara Loftus
Quoted 16 lines · Ciara Loftus

This patch removes the SSE Rx and Tx paths from the i40e, iavf and ice drivers. Each of these drivers have faster vector paths (AVX2 and AVX-512) which have feature parity with the SSE paths. In environments where AVX2 or AVX-512 are not supported, the scalar path will still be used, which also has feature parity.

This series is intended for the next-net-intel tree.

v2:
* Remove deprecation notice
* Provide more detailed explanation in the release notes.
* Usage of function type enum instead of pkt burst pointer in the supported_ptypes_get functions (simplify the logic by removing #ifdefs)
* More renaming in iavf to remove all mentions of SSE
* Removal of IAVF_REL_MBUFS_AVX512_VEC enum value as it's not used

Quoted 7 lines

Ciara Loftus (5):
net/i40e: remove SSE vector path
net/iavf: remove SSE vector path
net/ice: remove SSE vector path
doc: add release note entry for SSE removal
doc: remove deprecation notice of SSE in some Intel drivers

Patchset applied to dpdk-next-net-intel, with the last two doc patches squashed into the code ones.

/Bruce