Files
android_kernel_fxtec_sm6115/include/uapi/linux
Jesper Dangaard Brouer eeee5f8931 UPSTREAM: bpf: BPF-helper for MTU checking add length input
The FIB lookup example[1] show how the IP-header field tot_len
(iph->tot_len) is used as input to perform the MTU check.

This patch extend the BPF-helper bpf_check_mtu() with the same ability
to provide the length as user parameter input, via mtu_len parameter.

This still needs to be done before the bpf_check_mtu() helper API
becomes frozen.

  [1] samples/bpf/xdp_fwd_kern.c

Fixes: 34b2021cc616 ("bpf: Add BPF-helper for MTU checking")
Change-Id: Ib924692fa1d9fe7105ea9580ae9f0523f1b8fdb6
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/161521555850.3515614.6533850861569774444.stgit@firesoul
2026-05-31 11:15:48 +01:00
..
2023-09-23 10:48:08 +02:00
2026-05-31 11:15:33 +01:00