diff options
| author | Stanislav Fomichev <[email protected]> | 2023-11-14 04:54:52 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-11-23 21:04:04 +0000 |
| commit | c0c6bde586c7dce82719b4ff32a2db6af9ee3d65 (patch) | |
| tree | fa3610ce4bae16c4ea1ab3fa962ad79b6bb275da /drivers/net/netkit.c | |
| parent | Merge tag 'net-6.7-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/netd... (diff) | |
| download | kernel-c0c6bde586c7dce82719b4ff32a2db6af9ee3d65.tar.gz kernel-c0c6bde586c7dce82719b4ff32a2db6af9ee3d65.zip | |
netdevsim: Don't accept device bound programs
Commit 2b3486bc2d23 ("bpf: Introduce device-bound XDP programs") introduced
device-bound programs by largely reusing existing offloading infrastructure.
This changed the semantics of 'prog->aux->offload' a bit. Now, it's non-NULL
for both offloaded and device-bound programs.
Instead of looking at 'prog->aux->offload' let's call bpf_prog_is_offloaded
which should be true iff the program is offloaded and not merely device-bound.
Fixes: 2b3486bc2d23 ("bpf: Introduce device-bound XDP programs")
Reported-by: [email protected]
Signed-off-by: Stanislav Fomichev <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Cc: Dipendra Khadka <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'drivers/net/netkit.c')
0 files changed, 0 insertions, 0 deletions
