Skip to content
Snippets Groups Projects
Commit 57ae676e authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller
Browse files

nfp: flower: add Kconfig for flower app


Give users an option not to build the flower-offload related code.

Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: default avatarSimon Horman <simon.horman@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6d48ceb2
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,16 @@ config NFP ...@@ -25,6 +25,16 @@ config NFP
cards working as a advanced Ethernet NIC. It works with both cards working as a advanced Ethernet NIC. It works with both
SR-IOV physical and virtual functions. SR-IOV physical and virtual functions.
config NFP_APP_FLOWER
bool "NFP4000/NFP6000 TC Flower offload support"
depends on NFP
depends on NET_SWITCHDEV
---help---
Enable driver support for TC Flower offload on NFP4000 and NFP6000.
Say Y, if you are planning to make use of TC Flower offload
either directly, with Open vSwitch, or any other way. Note that
TC Flower offload requires specific FW to work.
config NFP_DEBUG config NFP_DEBUG
bool "Debug support for Netronome(R) NFP4000/NFP6000 NIC drivers" bool "Debug support for Netronome(R) NFP4000/NFP6000 NIC drivers"
depends on NFP depends on NFP
......
...@@ -27,10 +27,14 @@ nfp-objs := \ ...@@ -27,10 +27,14 @@ nfp-objs := \
nfp_port.o \ nfp_port.o \
bpf/main.o \ bpf/main.o \
bpf/offload.o \ bpf/offload.o \
flower/cmsg.o \
flower/main.o \
nic/main.o nic/main.o
ifeq ($(CONFIG_NFP_APP_FLOWER),y)
nfp-objs += \
flower/cmsg.o \
flower/main.o
endif
ifeq ($(CONFIG_BPF_SYSCALL),y) ifeq ($(CONFIG_BPF_SYSCALL),y)
nfp-objs += \ nfp-objs += \
bpf/verifier.o \ bpf/verifier.o \
......
...@@ -43,7 +43,9 @@ ...@@ -43,7 +43,9 @@
static const struct nfp_app_type *apps[] = { static const struct nfp_app_type *apps[] = {
&app_nic, &app_nic,
&app_bpf, &app_bpf,
#ifdef CONFIG_NFP_APP_FLOWER
&app_flower, &app_flower,
#endif
}; };
const char *nfp_app_mip_name(struct nfp_app *app) const char *nfp_app_mip_name(struct nfp_app *app)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment