netdevsim: don't compile BPF code if syscall not enabled
authorJakub Kicinski <[email protected]>
Tue, 23 Jan 2018 19:22:54 +0000 (11:22 -0800)
committerDavid S. Miller <[email protected]>
Wed, 24 Jan 2018 01:24:31 +0000 (20:24 -0500)
commit7c5db7e7292f7f3244f895e7fa301dcff647e07e
treecbd37f35387938e891ba140be8abbd9874904d98
parentcaf952288d715df32b2e70c64506849287844fe4
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 <[email protected]>
Reviewed-by: Quentin Monnet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/netdevsim/Makefile
drivers/net/netdevsim/netdevsim.h