Re: [PATCH bpf-next V2 1/2] bpf: BPF-helper for MTU checking add length input

2021-03-08 Thread Daniel Borkmann
On 2/27/21 11:37 AM, Jesper Dangaard Brouer wrote: On Sat, 27 Feb 2021 00:36:02 +0100 Daniel Borkmann wrote: On 2/18/21 12:49 PM, Jesper Dangaard Brouer wrote: 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 e

Re: [PATCH bpf-next V2 1/2] bpf: BPF-helper for MTU checking add length input

2021-02-27 Thread Jesper Dangaard Brouer
On Sat, 27 Feb 2021 00:36:02 +0100 Daniel Borkmann wrote: > On 2/18/21 12:49 PM, Jesper Dangaard Brouer wrote: > > 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()

Re: [PATCH bpf-next V2 1/2] bpf: BPF-helper for MTU checking add length input

2021-02-26 Thread Daniel Borkmann
On 2/18/21 12:49 PM, Jesper Dangaard Brouer wrote: 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 mt

[PATCH bpf-next V2 1/2] bpf: BPF-helper for MTU checking add length input

2021-02-18 Thread Jesper Dangaard Brouer
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. [1] samples/bpf/xdp_fwd_kern.c Sig