diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-08-09 15:30:33 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-11 23:47:01 +0300 |
commit | a2e8da9378cc09e2e922a0b3d481bd9d07c3d245 (patch) | |
tree | b6db00631229583093c1a9a48cb15b2be9e05065 /drivers/net/ethernet/intel/ixgbe | |
parent | 7690f2a51d8afe51ac97e7fae66b081f192a7158 (diff) | |
download | linux-a2e8da9378cc09e2e922a0b3d481bd9d07c3d245.tar.xz |
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/intel/ixgbe')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c index c6b132476de4..f9fd8d8f1bef 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c @@ -9230,7 +9230,7 @@ static int ixgbe_setup_tc_cls_u32(struct net_device *dev, { struct ixgbe_adapter *adapter = netdev_priv(dev); - 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; |