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)
commitf21ad61424f7c623eddbcf54425a86afb68ca55f
treee8052cb2fd73167eec9fc79e6539a10796ee17fa
parentcddbb79f7a80adbe5f2b2dfddb9c0611bdba6cdb
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