net/ice: disable Rx timestamp offload on vector paths
PATCH 1/1 net/ice: disable Rx timestamp offload on vector paths
Enabling IEEE1588 timesync on a running ice port requires the Rx timestamp offload to be configured. Previously, having that offload always made the driver use the scalar Rx path, which is the only path that sets the PTP mbuf flags. Since Rx timestamp support was added to the AVX2 and AVX-512 Rx paths, a vector path can now be selected with the offload enabled. Timesync then gets enabled after port start, and PTP packets are received without the IEEE1588 PTP and timestamp flags set.
Remove the timestamp offload from the vector Rx path masks so that requesting it selects a scalar Rx path again. Flag can be re-added once PTP support has also been added in the vector paths.
--- doc/guides/nics/features/ice.ini | 2 +- doc/guides/rel_notes/release_26_11.rst | 2 -- drivers/net/intel/ice/ice_rxtx.c | 8 ++++---- drivers/net/intel/ice/ice_rxtx.h | 4 ---- 4 files changed, 5 insertions(+), 11 deletions(-)
doc/guides/nics/features/ice.ini +1 -1
@@ -37,7 +37,7 @@ VLAN offload = Y QinQ offload = P L3 checksum offload = Y L4 checksum offload = Y -Timestamp offload = Y +Timestamp offload = P Inner L3 checksum = Y Inner L4 checksum = Y Packet type parsing = Y
doc/guides/rel_notes/release_26_11.rst +0 -2
@@ -187,8 +187,6 @@ New Features * Added support for Tx rate limiting per queue. * Made the existing diagnostic dump functions available through the public ``rte_pmd_ice.h`` header. - * Added support for the Rx hardware timestamp offload - (``RTE_ETH_RX_OFFLOAD_TIMESTAMP``) in the AVX2 and AVX512 vector Rx paths. * **Updated Intel ixgbe driver.**
drivers/net/intel/ice/ice_rxtx.c +4 -4
@@ -3317,7 +3317,7 @@ static const struct ci_rx_path_info ice_rx_path_infos[] = { .pkt_burst = ice_recv_pkts_vec_avx2_offload, .info = "Offload Vector AVX2", .features = { - .rx_offloads = ICE_RX_VECTOR_OFFLOAD_TS_OFFLOADS, + .rx_offloads = ICE_RX_VECTOR_OFFLOAD_OFFLOADS, .simd_width = RTE_VECT_SIMD_256, .bulk_alloc = true }
@@ -3326,7 +3326,7 @@ static const struct ci_rx_path_info ice_rx_path_infos[] = { .pkt_burst = ice_recv_scattered_pkts_vec_avx2_offload, .info = "Offload Vector AVX2 Scattered", .features = { - .rx_offloads = ICE_RX_VECTOR_OFFLOAD_TS_OFFLOADS, + .rx_offloads = ICE_RX_VECTOR_OFFLOAD_OFFLOADS, .simd_width = RTE_VECT_SIMD_256, .scattered = true, .bulk_alloc = true
@@ -3356,7 +3356,7 @@ static const struct ci_rx_path_info ice_rx_path_infos[] = { .pkt_burst = ice_recv_pkts_vec_avx512_offload, .info = "Offload Vector AVX512", .features = { - .rx_offloads = ICE_RX_VECTOR_OFFLOAD_TS_OFFLOADS, + .rx_offloads = ICE_RX_VECTOR_OFFLOAD_OFFLOADS, .simd_width = RTE_VECT_SIMD_512, .bulk_alloc = true }
@@ -3365,7 +3365,7 @@ static const struct ci_rx_path_info ice_rx_path_infos[] = { .pkt_burst = ice_recv_scattered_pkts_vec_avx512_offload, .info = "Offload Vector AVX512 Scattered", .features = { - .rx_offloads = ICE_RX_VECTOR_OFFLOAD_TS_OFFLOADS, + .rx_offloads = ICE_RX_VECTOR_OFFLOAD_OFFLOADS, .simd_width = RTE_VECT_SIMD_512, .scattered = true, .bulk_alloc = true
drivers/net/intel/ice/ice_rxtx.h +0 -4
@@ -109,10 +109,6 @@ RTE_ETH_RX_OFFLOAD_VLAN_STRIP | \ RTE_ETH_RX_OFFLOAD_VLAN_FILTER |\ RTE_ETH_RX_OFFLOAD_RSS_HASH) -/* vector offload paths that also support Rx timestamp (AVX2/AVX512 only) */ -#define ICE_RX_VECTOR_OFFLOAD_TS_OFFLOADS ( \ - ICE_RX_VECTOR_OFFLOAD_OFFLOADS |\ - RTE_ETH_RX_OFFLOAD_TIMESTAMP)/* basic scalar path */ #define ICE_TX_SCALAR_OFFLOADS ( \
Signature · 1 line
2.55.0
Quoted 11 lines
Subject: [PATCH] net/ice: disable Rx timestamp offload on vector paths
Enabling IEEE1588 timesync on a running ice port requires the Rx timestamp offload to be configured. Previously, having that offload always made the driver use the scalar Rx path, which is the only path that sets the PTP mbuf flags. Since Rx timestamp support was added to the AVX2 and AVX-512 Rx paths, a vector path can now be selected with the offload enabled. Timesync then gets enabled after port start, and PTP packets are received without the IEEE1588 PTP and timestamp flags set.
Quoted 7 lines
Remove the timestamp offload from the vector Rx path masks so that requesting it selects a scalar Rx path again. Flag can be re-added once PTP support has also been added in the vector paths.
Fixes 332eb4ec8ff0 ("net/ice: support Rx timestamp offload on vector path")Signed-off-by Bruce Richardson <[email protected]>
Bruce Richardson
AppliedQuoted 15 lines · Ciara
Quoted 15 lines
Subject: [PATCH] net/ice: disable Rx timestamp offload on vector paths
Enabling IEEE1588 timesync on a running ice port requires the Rx timestamp offload to be configured. Previously, having that offload always made the driver use the scalar Rx path, which is the only path that sets the PTP mbuf flags. Since Rx timestamp support was added to the AVX2 and AVX-512 Rx paths, a vector path can now be selected with the offload enabled. Timesync then gets enabled after port start, and PTP packets are received without the IEEE1588 PTP and timestamp flags set.
Remove the timestamp offload from the vector Rx path masks so that requesting it selects a scalar Rx path again. Flag can be re-added once PTP support has also been added in the vector paths.
Quoted 5 lines
Quoted 3 lines
Fixes 332eb4ec8ff0 ("net/ice: support Rx timestamp offload on vector path")Signed-off-by Bruce Richardson <[email protected]>Acked-by Ciara Loftus <[email protected]>
Applied to dpdk-next-net-intel.
/Bruce