]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4: Allocate VPPs for each port on PF init
authorIdo Shamay <idos@mellanox.com>
Thu, 2 Apr 2015 13:31:14 +0000 (16:31 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 20:25:02 +0000 (16:25 -0400)
commit3afa7ed8df7dad6829022a7e98bc92edab4fefbd
tree3f95b58284044841a1fea854940f29f66f518f28
parent93d626677582bff4473147b51f8d5c308fbd302e
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>
drivers/net/ethernet/mellanox/mlx4/cmd.c
drivers/net/ethernet/mellanox/mlx4/fw_qos.h
drivers/net/ethernet/mellanox/mlx4/mlx4.h