aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorYu Xiao <[email protected]>2021-10-28 12:00:36 +0200
committerDavid S. Miller <[email protected]>2021-10-28 12:59:32 +0100
commit90a881fc352a953f1c8beb61977a2db0818157d4 (patch)
tree9e39ff8b4c1120de94be934dc32e7b711d83645b /lib/test_overflow.c
parent9159f102402a64ac85e676b75cc1f9c62c5b4b73 (diff)
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 <[email protected]> Reviewed-by: Yinjun Zhang <[email protected]> Reviewed-by: Niklas Soderlund <[email protected]> Signed-off-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions