diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2014-03-12 12:00:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-12 15:57:14 -0400 |
commit | b6ffaeffaea4d92f05f5ba1ef54df407cb7c8517 (patch) | |
tree | 36ce4558756c07bdcc47a8ad6a6a3208f4e1fe05 /include/linux/mlx4 | |
parent | 9cd593529c8652785bc9962acc79b6b176741f99 (diff) | |
download | linux-stable-b6ffaeffaea4d92f05f5ba1ef54df407cb7c8517.tar.gz linux-stable-b6ffaeffaea4d92f05f5ba1ef54df407cb7c8517.tar.bz2 linux-stable-b6ffaeffaea4d92f05f5ba1ef54df407cb7c8517.zip |
mlx4: In RoCE allow guests to have multiple GIDS
The GIDs are statically distributed, as follows:
PF: gets 16 GIDs
VFs: Remaining GIDS are divided evenly between VFs activated by the driver.
If the division is not even, lower-numbered VFs get an extra GID.
For an IB interface, the number of gids per guest remains as before: one gid per guest.
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r-- | include/linux/mlx4/device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index e4853650679d..86e02e5c2c77 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h @@ -49,6 +49,7 @@ #define MIN_MSIX_P_PORT 5 #define MLX4_ROCE_MAX_GIDS 128 +#define MLX4_ROCE_PF_GIDS 16 enum { MLX4_FLAG_MSI_X = 1 << 0, |