]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
nfp: bpf: don't allow changing MTU above BPF offload limit when active
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 10 Jan 2018 12:25:57 +0000 (12:25 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 10 Jan 2018 12:49:35 +0000 (13:49 +0100)
commitccbdc596f4f6f6795956d46bb4b5f58c7e4bc3c8
tree15f3d4fd452961906eb5cd078c7ea4b557926a89
parentc4f7730be580f8c39decc058246a83ddf7d7b3cb
nfp: bpf: don't allow changing MTU above BPF offload limit when active

When BPF offload is active we need may need to restrict the MTU
changes more than just to the limitation of the kernel XDP datapath.
Allow the BPF code to veto a MTU change.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/net/ethernet/netronome/nfp/bpf/main.c
drivers/net/ethernet/netronome/nfp/nfp_app.h
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
drivers/net/ethernet/netronome/nfp/nfp_net_repr.c