hns3pf: don't check handle during mqprio offload
authorJiri Pirko <jiri@mellanox.com>
Mon, 7 Aug 2017 08:15:28 +0000 (10:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 16:42:36 +0000 (09:42 -0700)
Similar to the rest offloaders of mqprio, no need to check handle.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c

index 6bb1e35336cc8ae027ddf76f9f23dcbc73bca90c..ef5795923b0cf7e4068490f8068aad36c2224509 100644 (file)
@@ -1223,7 +1223,7 @@ static int hns3_nic_setup_tc(struct net_device *dev, enum tc_setup_type type,
                             u32 handle, u32 chain_index, __be16 protocol,
                             struct tc_to_netdev *tc)
 {
-       if (handle != TC_H_ROOT || type != TC_SETUP_MQPRIO)
+       if (type != TC_SETUP_MQPRIO)
                return -EINVAL;
 
        return hns3_setup_tc(dev, tc->mqprio->num_tc);