mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
net/mlx4_core: Get num_tc using netdev_get_num_tc
Avoid reading num_tc directly from struct net_device, but use the helper function netdev_get_num_tc. Fixes:bc6a4744b8("net/mlx4_en: num cores tx rings for every UP") Fixes:f5b6345ba8("net/mlx4_en: User prio mapping gets corrupted when changing number of channels") Signed-off-by: Alaa Hleihel <alaa@mellanox.com> Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ae5a2e29d1
commit
4b5e5b7ece
2 changed files with 2 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue