]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Check support before TC swap in ETS init
authorTariq Toukan <tariqt@mellanox.com>
Tue, 10 Oct 2017 13:54:30 +0000 (16:54 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 12 Jan 2018 00:01:49 +0000 (02:01 +0200)
commit6149bf214b732112927e8d40f860c91d122c48a6
tree9c55eb549f8728730ce2b9250ecb21be0ff2921c
parent33fc7ad70dc029b17b3ee9359d8a3c3b108d1925
net/mlx5e: Check support before TC swap in ETS init

Should not do the following swap between TCs 0 and 1
when max num of TCs is 1:
tclass[prio=0]=1, tclass[prio=1]=0, tclass[prio=i]=i (for i>1)

Fixes: 47ef08537348 ("net/mlx5e: Support DCBNL IEEE ETS")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c