Skip to content

Commit

Permalink
netdev-dpdk: fix tso bug
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: 0-day Robot <[email protected]>
  • Loading branch information
Dexia Li authored and ovsrobot committed Sep 13, 2023
1 parent bac34b2 commit 5270ece
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/netdev-dpdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5270ece

Please sign in to comment.