提交 74897ef0 编写于 作者: J Jiri Pirko 提交者: David S. Miller

hns3pf: don't check handle during mqprio offload

Similar to the rest offloaders of mqprio, no need to check handle.
Signed-off-by: NJiri Pirko <jiri@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 37cba6b3
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册