OSDN Git Service

net: sched: use newly added classid identity helpers
[uclinux-h8/linux.git] / drivers / net / ethernet / chelsio / cxgb4 / cxgb4_main.c
index d80b20d..afa6fd6 100644 (file)
@@ -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;