mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
hns3pf: don't check handle during mqprio offload
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>
This commit is contained in:
parent
37cba6b3f8
commit
74897ef0a5
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue