mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
net/mlx5e: Relax ndo_setup_tc handle restriction
Restricting handle to TC_H_ROOT breaks the old instantiation of mqprio
to setup a hardware qdisc. This patch relaxes the test, to only check the
type.
Fixes: 08fb1da
("net/mlx5e: Support DCBNL IEEE ETS")
Signed-off-by: Amir Vadai <amir@vadai.me>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
60ab4584f5
commit
67ba422e95
1 changed files with 1 additions and 1 deletions
|
@ -1883,7 +1883,7 @@ static int mlx5e_setup_tc(struct net_device *netdev, u8 tc)
|
||||||
static int mlx5e_ndo_setup_tc(struct net_device *dev, u32 handle,
|
static int mlx5e_ndo_setup_tc(struct net_device *dev, u32 handle,
|
||||||
__be16 proto, struct tc_to_netdev *tc)
|
__be16 proto, struct tc_to_netdev *tc)
|
||||||
{
|
{
|
||||||
if (handle != TC_H_ROOT || tc->type != TC_SETUP_MQPRIO)
|
if (tc->type != TC_SETUP_MQPRIO)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
return mlx5e_setup_tc(dev, tc->tc);
|
return mlx5e_setup_tc(dev, tc->tc);
|
||||||
|
|
Loading…
Reference in a new issue