All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftest/bpf: fix IPV6FR handling in flow dissector
@ 2020-11-10 17:12 Santucci Pierpaolo
  2020-11-11  4:48 ` Andrii Nakryiko
  2020-11-16 10:30 ` [PATCH v2] " Santucci Pierpaolo
  0 siblings, 2 replies; 10+ messages in thread
From: Santucci Pierpaolo @ 2020-11-10 17:12 UTC (permalink / raw)
  To: shuah, ast, daniel, kafai, songliubraving, yhs, andrii,
	john.fastabend, kpsingh
  Cc: netdev, bpf

From second fragment on, IPV6FR program must stop the dissection of IPV6
fragmented packet. This is the same approach used for IPV4 fragmentation.

Signed-off-by: Santucci Pierpaolo <santucci@epigenesys.com>
---
 tools/testing/selftests/bpf/progs/bpf_flow.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/bpf/progs/bpf_flow.c b/tools/testing/selftests/bpf/progs/bpf_flow.c
index 5a65f6b51377..95a5a0778ed7 100644
--- a/tools/testing/selftests/bpf/progs/bpf_flow.c
+++ b/tools/testing/selftests/bpf/progs/bpf_flow.c
@@ -368,6 +368,8 @@ PROG(IPV6FR)(struct __sk_buff *skb)
 		 */
 		if (!(keys->flags & BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG))
 			return export_flow_keys(keys, BPF_OK);
+	} else {
+		return export_flow_keys(keys, BPF_OK);
 	}
 
 	return parse_ipv6_proto(skb, fragh->nexthdr);
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-11-16 16:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-10 17:12 [PATCH] selftest/bpf: fix IPV6FR handling in flow dissector Santucci Pierpaolo
2020-11-11  4:48 ` Andrii Nakryiko
2020-11-11 11:17   ` Jakub Sitnicki
2020-11-11 14:12     ` Santucci Pierpaolo
2020-11-11 23:06       ` Daniel Borkmann
2020-11-12  9:00         ` Jakub Sitnicki
2020-11-13  0:50           ` John Fastabend
2020-11-16 10:30 ` [PATCH v2] " Santucci Pierpaolo
2020-11-16 12:18   ` Jakub Sitnicki
2020-11-16 16:10   ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.