summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio
diff options
context:
space:
mode:
authorJiri Pirko2017-08-09 14:30:33 +0200
committerDavid S. Miller2017-08-11 22:47:01 +0200
commita2e8da9378cc09e2e922a0b3d481bd9d07c3d245 (patch)
treeb6db00631229583093c1a9a48cb15b2be9e05065 /drivers/net/ethernet/chelsio
parentnet: sched: propagate classid down to offload drivers (diff)
downloadkernel-qcow2-linux-a2e8da9378cc09e2e922a0b3d481bd9d07c3d245.tar.gz
kernel-qcow2-linux-a2e8da9378cc09e2e922a0b3d481bd9d07c3d245.tar.xz
kernel-qcow2-linux-a2e8da9378cc09e2e922a0b3d481bd9d07c3d245.zip
net: sched: use newly added classid identity helpers
Instead of checking handle, which does not have the inner class information and drivers wrongly assume clsact->egress as ingress, use the newly introduced classid identification helpers. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
index d80b20d695e0..afa6fd688fac 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -2892,7 +2892,7 @@ static int cxgb_set_tx_maxrate(struct net_device *dev, int index, u32 rate)
static int cxgb_setup_tc_cls_u32(struct net_device *dev,
struct tc_cls_u32_offload *cls_u32)
{
- if (TC_H_MAJ(cls_u32->common.handle) != TC_H_MAJ(TC_H_INGRESS) ||
+ if (is_classid_clsact_ingress(cls_u32->common.classid) ||
cls_u32->common.chain_index)
return -EOPNOTSUPP;