summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/netronome/nfp/flower
diff options
context:
space:
mode:
authorChris Mi <chrism@mellanox.com>2017-08-18 07:24:20 -0400
committerDavid S. Miller <davem@davemloft.net>2017-08-18 10:29:04 -0700
commit7f3b39dafc6234dc1565fafe6adb15a6c4932182 (patch)
treee299a94f8873ef053e38e29f2d6306a6d96653cb /drivers/net/ethernet/netronome/nfp/flower
parent6ed272b2e9781cb284e20efa5e89d270a5707e5b (diff)
downloadlinux-7f3b39dafc6234dc1565fafe6adb15a6c4932182.tar.bz2
net/sched: Fix the logic error to decide the ingress qdisc
The offending commit used a newly added helper function. But the logic is wrong. Without this fix, the affected NICs can't do HW offload. Error -EOPNOTSUPP will be returned directly. Fixes: a2e8da9378cc ("net/sched: use newly added classid identity helpers") Signed-off-by: Chris Mi <chrism@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/flower')
-rw-r--r--drivers/net/ethernet/netronome/nfp/flower/offload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/flower/offload.c b/drivers/net/ethernet/netronome/nfp/flower/offload.c
index 3ad5aaa210a4..d868a5700e01 100644
--- a/drivers/net/ethernet/netronome/nfp/flower/offload.c
+++ b/drivers/net/ethernet/netronome/nfp/flower/offload.c
@@ -390,7 +390,7 @@ int nfp_flower_setup_tc(struct nfp_app *app, struct net_device *netdev,
struct tc_cls_flower_offload *cls_flower = type_data;
if (type != TC_SETUP_CLSFLOWER ||
- is_classid_clsact_ingress(cls_flower->common.classid) ||
+ !is_classid_clsact_ingress(cls_flower->common.classid) ||
!eth_proto_is_802_3(cls_flower->common.protocol) ||
cls_flower->common.chain_index)
return -EOPNOTSUPP;