Commit 7d3aed65 authored by Mina Almasry's avatar Mina Almasry Committed by David S. Miller
Browse files

net: refactor ->ndo_bpf calls into dev_xdp_propagate



When net devices propagate xdp configurations to slave devices,
we will need to perform a memory provider check to ensure we're
not binding xdp to a device using unreadable netmem.

Currently the ->ndo_bpf calls in a few places. Adding checks to all
these places would not be ideal.

Refactor all the ->ndo_bpf calls into one place where we can add this
check in the future.

Suggested-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarMina Almasry <almasrymina@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f9db28bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment