]> git.baikalelectronics.ru Git - kernel.git/commit
netdevsim: don't compile BPF code if syscall not enabled
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 23 Jan 2018 19:22:54 +0000 (11:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jan 2018 01:24:31 +0000 (20:24 -0500)
commitd53e0cdec49ae63ed050c9ac766b06d3f29d388e
treecbd37f35387938e891ba140be8abbd9874904d98
parentd815c0650e7350f425ba51e0fa6dd5e53aa9ff01
netdevsim: don't compile BPF code if syscall not enabled

We should not compile netdevsim/bpf.c if BPF syscall is not
enabled.  Otherwise bpf core would have to provide wrappers
for all functions offload drivers may call, even though
system will never see a BPF object.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/Makefile
drivers/net/netdevsim/netdevsim.h