aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4/device.h
diff options
context:
space:
mode:
authorJack Morgenstein <jackm@dev.mellanox.co.il>2012-08-03 08:40:52 +0000
committerRoland Dreier <roland@purestorage.com>2012-09-30 20:33:40 -0700
commitefcd235d736ab05ef2b29d7fe1493a2f52b07b66 (patch)
tree7111fa75eb2290a2c55962e6e1cd25007bdf0be0 /include/linux/mlx4/device.h
parentIB/mlx4: Add iov directory in sysfs under the ib device (diff)
downloadlinux-dev-efcd235d736ab05ef2b29d7fe1493a2f52b07b66.tar.xz
linux-dev-efcd235d736ab05ef2b29d7fe1493a2f52b07b66.zip
net/mlx4_core: Adjustments to SET_PORT for IB SR-IOV
1. Slaves may not set the IS_SM capability for the port. 2. DEV_MGMT may not be set in multifunction mode. Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to '')
-rw-r--r--include/linux/mlx4/device.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index 380e01671d1e..b3f9b4500b9b 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -54,6 +54,11 @@ enum {
};
enum {
+ MLX4_PORT_CAP_IS_SM = 1 << 1,
+ MLX4_PORT_CAP_DEV_MGMT_SUP = 1 << 19,
+};
+
+enum {
MLX4_MAX_PORTS = 2,
MLX4_MAX_PORT_PKEYS = 128
};