Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74897ef0 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

hns3pf: don't check handle during mqprio offload



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

Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 37cba6b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);