linux/drivers/net/ethernet/netronome/nfp/bpf
Yu Xiao 90a881fc35 nfp: bpf: relax prog rejection for mtu check through max_pkt_offset
MTU change is refused whenever the value of new MTU is bigger than
the max packet bytes that fits in NFP Cluster Target Memory (CTM).
However, an eBPF program doesn't always need to access the whole
packet data.

The maximum direct packet access (DPA) offset has always been
caculated by verifier and stored in the max_pkt_offset field of prog
aux data.

Signed-off-by: Yu Xiao <yu.xiao@corigine.com>
Reviewed-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Reviewed-by: Niklas Soderlund <niklas.soderlund@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-10-28 12:59:32 +01:00
..
cmsg.c ethernet/netronome/nfp: Fix a use after free in nfp_bpf_ctrl_msg_rx 2021-03-29 17:09:51 -07:00
fw.h
jit.c bpf: Rename BPF_XADD and prepare to encode other atomics in .imm 2021-01-14 18:34:29 -08:00
main.c nfp: bpf: relax prog rejection for mtu check through max_pkt_offset 2021-10-28 12:59:32 +01:00
main.h nfp: bpf: relax prog rejection for mtu check through max_pkt_offset 2021-10-28 12:59:32 +01:00
offload.c nfp: bpf: relax prog rejection for mtu check through max_pkt_offset 2021-10-28 12:59:32 +01:00
verifier.c bpf: Rename BPF_XADD and prepare to encode other atomics in .imm 2021-01-14 18:34:29 -08:00