net/sched: Fix the logic error to decide the ingress qdisc
authorChris Mi <chrism@mellanox.com>
Fri, 18 Aug 2017 11:24:20 +0000 (07:24 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Aug 2017 17:29:04 +0000 (10:29 -0700)
commit7f3b39dafc6234dc1565fafe6adb15a6c4932182
treee299a94f8873ef053e38e29f2d6306a6d96653cb
parent6ed272b2e9781cb284e20efa5e89d270a5707e5b
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>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/netronome/nfp/bpf/main.c
drivers/net/ethernet/netronome/nfp/flower/offload.c