--- v6
+++ v11
@@ -30,6 +30,11 @@
V4: Keep sanity limit + netdev "up" checks + rename BPF-helper.
V5: Fix uninit variable + name struct output member mtu_result.
V6: Use bpf_check_mtu() in selftest
+V7: Fix logic using tot_len and add another selftest
+V8: Add better selftests for BPF-helper bpf_check_mtu
+V9: Remove patch that use skb_set_redirected
+V10: Fix selftests and 'tot_len' MTU check like XDP
+V11: Fix nitpicks in selftests
---
@@ -39,18 +44,21 @@
bpf: bpf_fib_lookup return MTU value as output when looked up
bpf: add BPF-helper for MTU checking
bpf: drop MTU check when doing TC-BPF redirect to ingress
- bpf: make it possible to identify BPF redirected SKBs
selftests/bpf: use bpf_check_mtu in selftest test_cls_redirect
+ bpf/selftests: tests using bpf_check_mtu BPF-helper
include/linux/netdevice.h | 31 +++
- include/uapi/linux/bpf.h | 78 ++++++++-
- net/core/dev.c | 21 --
- net/core/filter.c | 182 ++++++++++++++++++--
- net/sched/Kconfig | 1
- tools/include/uapi/linux/bpf.h | 78 ++++++++-
+ include/uapi/linux/bpf.h | 78 +++++++
+ net/core/dev.c | 19 --
+ net/core/filter.c | 183 +++++++++++++++--
+ tools/include/uapi/linux/bpf.h | 78 +++++++
+ tools/testing/selftests/bpf/prog_tests/check_mtu.c | 216 ++++++++++++++++++++
+ tools/testing/selftests/bpf/progs/test_check_mtu.c | 198 ++++++++++++++++++
.../selftests/bpf/progs/test_cls_redirect.c | 7 +
- 7 files changed, 356 insertions(+), 42 deletions(-)
+ 8 files changed, 766 insertions(+), 44 deletions(-)
+ create mode 100644 tools/testing/selftests/bpf/prog_tests/check_mtu.c
+ create mode 100644 tools/testing/selftests/bpf/progs/test_check_mtu.c
--