summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-01-18 05:51:06 +0300
committerDavid S. Miller <davem@davemloft.net>2018-01-19 23:44:19 +0300
commit81bd5ded60c8a369fee6c4d94a0bcb84ad9ce56a (patch)
treef4b577a0c4fc673ef9498e3a78b384bffe97012f
parent78a0a65f409a604430e4e8dc413d6e72ef29288e (diff)
downloadlinux-81bd5ded60c8a369fee6c4d94a0bcb84ad9ce56a.tar.xz
nfp: bpf: disable all ctrl vNIC capabilities
BPF firmware currently exposes IRQ moderation capability. The driver will make use of it by default, inserting 50 usec delay to every control message exchange. This cuts the number of messages per second we can exchange by almost half. None of the other capabilities make much sense for BPF control vNIC, either. Disable them all. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/netronome/nfp/bpf/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/bpf/main.c b/drivers/net/ethernet/netronome/nfp/bpf/main.c
index 5f021d0c88a4..4ee11bf2aed7 100644
--- a/drivers/net/ethernet/netronome/nfp/bpf/main.c
+++ b/drivers/net/ethernet/netronome/nfp/bpf/main.c
@@ -389,7 +389,7 @@ const struct nfp_app_type app_bpf = {
.id = NFP_APP_BPF_NIC,
.name = "ebpf",
- .ctrl_cap_mask = ~0U,
+ .ctrl_cap_mask = 0,
.init = nfp_bpf_init,
.clean = nfp_bpf_clean,