[[PATCH] ] linux/igb_uio: fix build with Linux 5.18

2023-01-29 Thread jiangheng (G)
Since commit 7968778914 (PCI: Remove the deprecated "pci-dma-compat.h" API) in 5.18, pci_set_dma_mask() and pci_set_consistent_dma_mask() no longer exist switch those api to dma_set_mask_and_coherent. --- linux/igb_uio/igb_uio.c | 8 1 file changed, 8 insertions(+) diff --git a/linux/igb

答复: [PATCH] TCP data length is incorrectly calculated in the gro_tcp4_reassemble function.

2023-10-31 Thread jiangheng (G)
Hi: This issue has been fixed: https://github.com/DPDK/dpdk/commit/b8a55871d5af6f5b8694b1cb5eacbc629734e403 https://github.com/DPDK/dpdk/commit/72f51b097a71fb9bdea13bdd254ff620b34c852e -邮件原件- 发件人: Stephen Hemminger 发送时间: 2023年11月1日 2:56 收件人: jiangheng (G) 抄送: dev@dpdk.org 主题: Re

[PATCH] net/mlx5: fix lro update tcp header cksum error

2023-04-12 Thread jiangheng (G)
csum is the sum of three 16 bits value it must be folded twice to ensure that the upper 16 bits are 0 --- drivers/net/mlx5/mlx5_rx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/mlx5_rx.c b/drivers/net/mlx5/mlx5_rx.c index a2be523e9e..ae537dfffa 100644 --- a/drivers/net/mlx

[PATCH v2] net/mlx5: fix lro update tcp header cksum error

2023-04-12 Thread jiangheng (G)
ase, format the patch according to the rules and send v2 ? > - add Fixes: tag with reference to appropriate commit > - add Cc: sta...@dpdk.org > - fix typos in commit message - capitalize sentences, add trailing points, > etc. > > With best regards, > Slava > > > From: j

[GRO] check whether ip_id continuity needs to be checked when two TCP packets are merged.

2023-04-15 Thread jiangheng (G)
Hi jiayu.hu It cannot be guaranteed that 16bit identification field of ip packets in the same tcp stream will be continuous. Please help check whether ip_id continuity needs to be checked when two TCP packets are merged? Seems to modify the following code, gro will aggregate better, and work bet

[PATCH] TCP data length is incorrectly calculated in the gro_tcp4_reassemble function.

2022-09-28 Thread jiangheng (G)
Hello: In gro_tcp4_reassemble function, tcp data len is calculated: tcp_dl = pkt->pkt_len - hdr_len; https://github.com/DPDK/dpdk/blob/v22.07/lib/gro/gro_tcp4.c#L232 if packets < 60 bytes, pkt_len will contain padding bytes, tcp_dl is incorrectly calculated. this will result the wrong data length