summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4
diff options
context:
space:
mode:
authorMatan Barak2014-11-13 13:45:33 +0100
committerDavid S. Miller2014-11-13 21:16:22 +0100
commitde966c5928026b100a989c8cef761d306310a184 (patch)
tree6a4651e46bf83c8b6c2404ca1e0890c23511b81b /include/linux/mlx4
parentnet/mlx4_core: Flexible (asymmetric) allocation of EQs and MSI-X vectors for ... (diff)
downloadkernel-qcow2-linux-de966c5928026b100a989c8cef761d306310a184.tar.gz
kernel-qcow2-linux-de966c5928026b100a989c8cef761d306310a184.tar.xz
kernel-qcow2-linux-de966c5928026b100a989c8cef761d306310a184.zip
net/mlx4_core: Support more than 64 VFs
We now allow up to 126 VFs. Note though that certain firmware versions only allow up to 80 VFs. Moreover, old HCAs only support 64 VFs. In these cases, we limit the maximum number of VFs to 64. Signed-off-by: Matan Barak <matanb@mellanox.com> 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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index 1c560eb870ad..cf09e65c2901 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -95,7 +95,7 @@ enum {
enum {
MLX4_MAX_NUM_PF = 16,
- MLX4_MAX_NUM_VF = 64,
+ MLX4_MAX_NUM_VF = 126,
MLX4_MAX_NUM_VF_P_PORT = 64,
MLX4_MFUNC_MAX = 80,
MLX4_MAX_EQ_NUM = 1024,
@@ -190,7 +190,8 @@ enum {
MLX4_DEV_CAP_FLAG2_ETH_PROT_CTRL = 1LL << 14,
MLX4_DEV_CAP_FLAG2_ETH_BACKPL_AN_REP = 1LL << 15,
MLX4_DEV_CAP_FLAG2_CONFIG_DEV = 1LL << 16,
- MLX4_DEV_CAP_FLAG2_SYS_EQS = 1LL << 17
+ MLX4_DEV_CAP_FLAG2_SYS_EQS = 1LL << 17,
+ MLX4_DEV_CAP_FLAG2_80_VFS = 1LL << 18
};
enum {