Skip to content

Commit

Permalink
hns3pf: don't check handle during mqprio offload
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Aug 7, 2017
1 parent 37cba6b commit 74897ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 74897ef

Please sign in to comment.