From: Jiri Pirko <j...@mellanox.com>

Similar to the rest offloaders of mqprio, no need to check handle.

Signed-off-by: Jiri Pirko <j...@mellanox.com>
---
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c 
b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c
index 6bb1e35..ef57959 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c
@@ -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);
-- 
2.9.3

Reply via email to