Skip to contentSkip to conversation

net/ice: fix burst Tx descriptor set issue

PATCH Applied Haiyue Wang 2 participants 2 messages Jul 31, 2020 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ice: fix burst Tx descriptor set issue

The variables 'td_offset' and 'td_tag' should be reset to 0 for every burst packet, otherwise the fields of Tx Descriptor will be set wrong, this will cause the MDD event error, and Tx will hang.

Fixes 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx")
---
 drivers/net/ice/ice_rxtx.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ice/ice_rxtx.c +2 -0
index bcb67ec25..b83c5c862 100644
@@ -2431,6 +2431,8 @@ ice_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
 		tx_pkt = *tx_pkts++;
 
 		td_cmd = 0;
+		td_tag = 0;
+		td_offset = 0;
 		ol_flags = tx_pkt->ol_flags;
 		tx_offload.l2_len = tx_pkt->l2_len;
 		tx_offload.l3_len = tx_pkt->l3_len;
Signature · 1 line
2.28.0
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 12 lines

-----Original Message-----
From: Wang, Haiyue <[email protected]>
Sent: Friday, July 31, 2020 12:27 PM
To: [email protected]; Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: Xu, Ting <[email protected]>; Sun, Chenmin <[email protected]>; Wang, Yinan <[email protected]>; Wang, Haiyue <[email protected]>; [email protected]
Subject: [PATCH v1] net/ice: fix burst Tx descriptor set issue

Quoted 8 lines

The variables 'td_offset' and 'td_tag' should be reset to 0 for every burst packet, otherwise the fields of Tx Descriptor will be set wrong, this will cause the MDD event error, and Tx will hang.

Fixes 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx")

Applied to dpdk-next-net-intel.

Thanks
Qi