]> asedeno.scripts.mit.edu Git - linux.git/commit
netdevsim: add support for simultaneous driver and hw XDP
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 12 Jul 2018 03:36:42 +0000 (20:36 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 13 Jul 2018 18:26:35 +0000 (20:26 +0200)
commit799e173d7125155c00e9492c8212c5e41333049f
tree6bf24c8ba22ca0fbc35ae1d0c87cf82b2a615f8d
parenta25717d2b604347d9af8da81deea7b08e8c94220
netdevsim: add support for simultaneous driver and hw XDP

Allow netdevsim to accept driver and offload attachment of XDP
BPF programs at the same time.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/net/netdevsim/bpf.c
drivers/net/netdevsim/netdev.c
drivers/net/netdevsim/netdevsim.h
tools/testing/selftests/bpf/test_offload.py