Thread (3 messages) 3 messages, 2 authors, 2024-08-21

Re: [PATCH net-next v21] net: refactor ->ndo_bpf calls into dev_xdp_propagate

From: Mina Almasry <hidden>
Date: 2024-08-21 05:24:25
Also in: bpf, linux-hyperv, lkml

On Wed, Aug 21, 2024 at 12:56 AM Mina Almasry [off-list ref] wrote:
When net devices propagate xdp configurations to slave devices, or when
core propagates xdp configuration to a device, we will need to perform
a memory provider check to ensure we're not binding xdp to a device
using unreadable netmem.

Currently ->ndo_bpf calls are all over the place. 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: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Mina Almasry <redacted>
Sorry the patch title should just be:

[PATCH net-next v1] net: refactor ->ndo_bpf calls into dev_xdp_propagate

v1, not v21.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help