Files
linux-stable-mirror/include/uapi/linux
Jesper Dangaard Brouer e5e35e754c 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: 34b2021cc6 ("bpf: Add BPF-helper for MTU checking")
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
2021-03-08 22:44:33 +01:00
..
2021-01-25 18:44:44 +01:00
2020-12-28 14:21:31 +00:00
2021-01-18 18:38:47 +01:00
2021-02-09 10:58:19 +01:00
2020-10-09 12:47:02 -06:00
2020-12-08 15:54:16 +01:00
2021-02-08 13:01:24 +01:00
2020-11-26 14:19:10 +01:00
2021-01-24 14:43:45 +01:00
2021-01-16 23:19:26 +01:00
2021-01-07 16:17:32 +01:00
2021-02-01 13:20:06 -07:00
2020-10-23 11:55:28 -04:00
2020-10-23 11:55:28 -04:00