]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4: Add mlx4_SET_VPORT_QOS implementation
authorIdo Shamay <idos@mellanox.com>
Thu, 2 Apr 2015 13:31:12 +0000 (16:31 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 20:25:02 +0000 (16:25 -0400)
commitaec81ce1405bb0d0d40b0f576b5dda0236a56c7a
tree48a7c99743cd1564ca8a8bcdaf5ebc9e050bb1bd
parent5b3ae28eb837df6f36e637f292fd575b3bab611f
net/mlx4: Add mlx4_SET_VPORT_QOS implementation

Add the SET_VPORT_QOS device command, which is ntended for virtual
granular QoS configuration per VF in SRIOV mode. The SET_VPORT_QOS
command sets and queries QoS parameters of a VPort. Each priority
allowed for a VPort is assigned with a share of the BW, and a BW
limitation. QoS parameters can be modified at any time, but must be
initialized before any QP is associated with the VPort.

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>
drivers/net/ethernet/mellanox/mlx4/cmd.c
drivers/net/ethernet/mellanox/mlx4/fw_qos.c
drivers/net/ethernet/mellanox/mlx4/fw_qos.h
include/linux/mlx4/cmd.h