Skip to content
Commit 90a881fc authored by Yu Xiao's avatar Yu Xiao Committed by David S. Miller
Browse files

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: default avatarYu Xiao <yu.xiao@corigine.com>
Reviewed-by: default avatarYinjun Zhang <yinjun.zhang@corigine.com>
Reviewed-by: default avatarNiklas Soderlund <niklas.soderlund@corigine.com>
Signed-off-by: default avatarSimon Horman <simon.horman@corigine.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9159f102
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment