--- v15
+++ v11
@@ -35,10 +35,6 @@
V9: Remove patch that use skb_set_redirected
V10: Fix selftests and 'tot_len' MTU check like XDP
V11: Fix nitpicks in selftests
-V12: Adjustments requested by Daniel
-V13: More adjustments requested by Daniel
-V14: Improve man page for BPF-helper bpf_check_mtu
-V15: Missing static for a function declaration
---
@@ -49,18 +45,18 @@
bpf: add BPF-helper for MTU checking
bpf: drop MTU check when doing TC-BPF redirect to ingress
selftests/bpf: use bpf_check_mtu in selftest test_cls_redirect
- selftests/bpf: tests using bpf_check_mtu BPF-helper
+ bpf/selftests: tests using bpf_check_mtu BPF-helper
- include/linux/netdevice.h | 32 +++
- include/uapi/linux/bpf.h | 86 ++++++++
- net/core/dev.c | 32 +--
- net/core/filter.c | 204 +++++++++++++++----
- tools/include/uapi/linux/bpf.h | 86 ++++++++
+ include/linux/netdevice.h | 31 +++
+ 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 +
- 8 files changed, 797 insertions(+), 64 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