summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/netronome/nfp/Makefile
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2017-11-02 01:31:33 -0700
committerDavid S. Miller <davem@davemloft.net>2017-11-02 20:27:11 +0900
commit43b45245e5a6c274f374ecb49e5bca39f28dbfad (patch)
treeed344224f6be684c100c3c8dc94fa2d22ecd3178 /drivers/net/ethernet/netronome/nfp/Makefile
parent2c4197a041dfbb5101aaa8be7b378ba69b91e765 (diff)
downloadblackbird-op-linux-43b45245e5a6c274f374ecb49e5bca39f28dbfad.tar.gz
blackbird-op-linux-43b45245e5a6c274f374ecb49e5bca39f28dbfad.zip
nfp: bpf: fall back to core NIC app if BPF not selected
If kernel config does not include BPF just replace the BPF app handler with the handler for basic NIC. The BPF app will now be built only if BPF infrastructure is selected in kernel config. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/Makefile')
-rw-r--r--drivers/net/ethernet/netronome/nfp/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/Makefile b/drivers/net/ethernet/netronome/nfp/Makefile
index bd3b2bd408bc..9e8d30cb1517 100644
--- a/drivers/net/ethernet/netronome/nfp/Makefile
+++ b/drivers/net/ethernet/netronome/nfp/Makefile
@@ -27,8 +27,6 @@ nfp-objs := \
nfp_net_sriov.o \
nfp_netvf_main.o \
nfp_port.o \
- bpf/main.o \
- bpf/offload.o \
nic/main.o
ifeq ($(CONFIG_NFP_APP_FLOWER),y)
@@ -44,6 +42,8 @@ endif
ifeq ($(CONFIG_BPF_SYSCALL),y)
nfp-objs += \
+ bpf/main.o \
+ bpf/offload.o \
bpf/verifier.o \
bpf/jit.o
endif
OpenPOWER on IntegriCloud