Skip to content

Commit ce9316b

Browse files
net/ice: fix path selection for QinQ Tx offload
The capabilities flag for the vector offload path include the QinQ offload capability, but in fact the offload path lacks any ability to create context descriptors. This means that it cannot insert multiple vlan tags for QinQ support, so move the offload from the VECTOR_OFFLOAD list to the NO_VECTOR list. Similarly, remove any check for the QinQ mbuf flag in any packets being transmitted, since that offload is invalid to request if the feature is not enabled. Fixes: 808a17b ("net/ice: add Rx AVX512 offload path") Cc: [email protected] Signed-off-by: Bruce Richardson <[email protected]> Acked-by: Ciara Loftus <[email protected]>
1 parent bbbd4e5 commit ce9316b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/intel/ice/ice_rxtx_vec_common.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ _ice_rx_queue_release_mbufs_vec(struct ci_rx_queue *rxq)
5353

5454
#define ICE_TX_NO_VECTOR_FLAGS ( \
5555
RTE_ETH_TX_OFFLOAD_MULTI_SEGS | \
56+
RTE_ETH_TX_OFFLOAD_QINQ_INSERT | \
5657
RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM | \
5758
RTE_ETH_TX_OFFLOAD_TCP_TSO | \
5859
RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO | \
@@ -64,7 +65,6 @@ _ice_rx_queue_release_mbufs_vec(struct ci_rx_queue *rxq)
6465

6566
#define ICE_TX_VECTOR_OFFLOAD ( \
6667
RTE_ETH_TX_OFFLOAD_VLAN_INSERT | \
67-
RTE_ETH_TX_OFFLOAD_QINQ_INSERT | \
6868
RTE_ETH_TX_OFFLOAD_IPV4_CKSUM | \
6969
RTE_ETH_TX_OFFLOAD_SCTP_CKSUM | \
7070
RTE_ETH_TX_OFFLOAD_UDP_CKSUM | \
@@ -195,8 +195,8 @@ ice_txd_enable_offload(struct rte_mbuf *tx_pkt,
195195

196196
*txd_hi |= ((uint64_t)td_offset) << ICE_TXD_QW1_OFFSET_S;
197197

198-
/* Tx VLAN/QINQ insertion Offload */
199-
if (ol_flags & (RTE_MBUF_F_TX_VLAN | RTE_MBUF_F_TX_QINQ)) {
198+
/* Tx VLAN insertion Offload */
199+
if (ol_flags & RTE_MBUF_F_TX_VLAN) {
200200
td_cmd |= ICE_TX_DESC_CMD_IL2TAG1;
201201
*txd_hi |= ((uint64_t)tx_pkt->vlan_tci <<
202202
ICE_TXD_QW1_L2TAG1_S);

0 commit comments

Comments
 (0)