From: Haiyue Wang Date: Fri, 31 Jul 2020 04:27:13 +0000 (+0800) Subject: net/ice: fix Tx hang with TSO X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8a72edd9cb232b868c38373e041b03db1220e779;p=dpdk.git net/ice: fix Tx hang with TSO 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") Cc: stable@dpdk.org Signed-off-by: Haiyue Wang Acked-by: Qi Zhang --- diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index bcb67ec251..b83c5c8629 100644 --- a/drivers/net/ice/ice_rxtx.c +++ b/drivers/net/ice/ice_rxtx.c @@ -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;