OSDN Git Service

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)
commit1c29146d3821be984030b49cf9509a269edc3b8b
tree48a7c99743cd1564ca8a8bcdaf5ebc9e050bb1bd
parent7e95bb99a8f969d4534867452793e44cc4731ca9
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