]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Add dynamic variable to hold the number of user priorities (UP)
authorInbar Karmy <inbark@mellanox.com>
Thu, 29 Jun 2017 11:07:56 +0000 (14:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jun 2017 19:56:15 +0000 (15:56 -0400)
commit16482a8b166a221a47cf73fed2a496527e69894d
treee8052cb2fd73167eec9fc79e6539a10796ee17fa
parenta9b4571bec218337e310ecbe5135a30cc4316607
net/mlx4_en: Add dynamic variable to hold the number of user priorities (UP)

Until this patch, the number of UPs was hard coded for eight.
Replace this with a variable in struct "mlx4_en_port_profile".
Currently, the variable will hold the maximum number of UP,
as before.
The patch creates an infrastructure to add an option for dynamic
change of the actual number of TCs.

Signed-off-by: Inbar Karmy <inbark@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Cc: Tarick Bedeir <tarick@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
drivers/net/ethernet/mellanox/mlx4/en_main.c
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h