From 5270ece0b960baab058477bc64f9564d6d305e9a Mon Sep 17 00:00:00 2001 From: Dexia Li Date: Wed, 13 Sep 2023 14:53:58 +0800 Subject: [PATCH] netdev-dpdk: fix tso bug when userspace tso enabled, mbuf RTE_MBUF_F_TX_TCP_SEG and RTE_MBUF_F_TX_TCP_CKSUM flag bits all positioned will result in driver hang using intel E810 vf driver iavf. As refered to dpdk csum example, RTE_MBUF_F_TX_TCP_SEG should only be positioned when tso is open. Signed-off-by: Dexia Li Signed-off-by: 0-day Robot --- lib/netdev-dpdk.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 55700250df2..c7cd00fc3f9 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -2461,7 +2461,6 @@ netdev_dpdk_prep_hwol_packet(struct netdev_dpdk *dev, struct rte_mbuf *mbuf) } mbuf->l4_len = TCP_OFFSET(th->tcp_ctl) * 4; - mbuf->ol_flags |= RTE_MBUF_F_TX_TCP_CKSUM; mbuf->tso_segsz = dev->mtu - mbuf->l3_len - mbuf->l4_len; if (mbuf->ol_flags & RTE_MBUF_F_TX_IPV4) {