Re: [PATCH] tools/ebpf: Fix IPv4 fragmentation identify

2023-04-28 Thread Andrew Melnichenko
t; ``` > > On Sun, Apr 23, 2023 at 9:12 AM Yan Vugenfirer wrote: > > > > FYI > > > > -- Forwarded message - > > From: luwenpeng > > Date: Fri, Apr 21, 2023 at 3:21 PM > > Subject: [PATCH] tools/ebpf: Fix IPv4 fragmentation identify > > To:

Re: [PATCH] tools/ebpf: Fix IPv4 fragmentation identify

2023-04-28 Thread Andrew Melnichenko
we consider that CE always 0(which is always should be) ``` On Sun, Apr 23, 2023 at 9:12 AM Yan Vugenfirer wrote: > > FYI > > -- Forwarded message - > From: luwenpeng > Date: Fri, Apr 21, 2023 at 3:21 PM > Subject: [PATCH] tools/ebpf: Fix IPv4 fragmentation ident

[PATCH] tools/ebpf: Fix IPv4 fragmentation identify

2023-04-21 Thread luwenpeng
The meaning of the bit flag in ip.frag_off is Don`t fragmented When judging IPv4 is_fragmented according to ip.frag_off, should use !(bpf_ntohs(ip.frag_off) & 0x4000) instead of !!ip.frag_off Signed-off-by: WenPeng Lu --- tools/ebpf/rss.bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)