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

2023-10-31 Thread jiangheng (G)
: [PATCH] TCP data length is incorrectly calculated in the gro_tcp4_reassemble function. On Wed, 28 Sep 2022 14:10:52 + "jiangheng (G)" wrote: > Hello: > In gro_tcp4_reassemble function, tcp data len is calculated: > tcp_dl = pkt->pkt_len - hdr_len; > https://github.com/

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

2023-10-31 Thread Stephen Hemminger
On Wed, 28 Sep 2022 14:10:52 + "jiangheng (G)" wrote: > 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, t

[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