aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/fw_qos.h
diff options
context:
space:
mode:
authorIdo Shamay <idos@mellanox.com>2015-04-02 16:31:14 +0300
committerDavid S. Miller <davem@davemloft.net>2015-04-02 16:25:02 -0400
commit666672d480fbae1af2e086f2bea200ed5607f967 (patch)
tree3f95b58284044841a1fea854940f29f66f518f28 /drivers/net/ethernet/mellanox/mlx4/fw_qos.h
parentnet/mlx4: Query device for QoS per VF support (diff)
downloadlinux-dev-666672d480fbae1af2e086f2bea200ed5607f967.tar.xz
linux-dev-666672d480fbae1af2e086f2bea200ed5607f967.zip
net/mlx4: Allocate VPPs for each port on PF init
Initialization of granular Qos per VF mechanism. Query the port availible VPPs and allocates those on all supported priorities in an equal share. Allocation is done only in SRIOV mode, when the feature is supported by the device and port type is Ethernet. Allocation currently is done only on the default priority 0. Signed-off-by: Ido Shamay <idos@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/fw_qos.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/fw_qos.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/fw_qos.h b/drivers/net/ethernet/mellanox/mlx4/fw_qos.h
index b3fffafff062..4a5320f79094 100644
--- a/drivers/net/ethernet/mellanox/mlx4/fw_qos.h
+++ b/drivers/net/ethernet/mellanox/mlx4/fw_qos.h
@@ -41,6 +41,9 @@
#define MLX4_NUM_UP 8
#define MLX4_NUM_TC 8
+/* Default supported priorities for VPP allocation */
+#define MLX4_DEFAULT_QOS_PRIO (0)
+
struct mlx4_vport_qos_param {
u32 bw_share;
u32 max_avg_bw;