Commit 2167a9a1 authored by Yu Xiao's avatar Yu Xiao Committed by Greg Kroah-Hartman
Browse files

nfp: bpf: relax prog rejection for mtu check through max_pkt_offset



[ Upstream commit 90a881fc ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c9a7d5fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment