summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMoni Shoua <monis@mellanox.com>2016-01-14 16:50:35 +0100
committerDoug Ledford <dledford@redhat.com>2016-01-19 21:35:00 +0100
commit7e57b85c444c3c1bf3550aa6890666fc4353bd33 (patch)
tree106b33c7ffa5f6c1a5fc9c954f0c097fefe8dadf /include
parentnet/mlx4_core: Configure mlx4 hardware for mixed RoCE v1/v2 modes (diff)
downloadlinux-7e57b85c444c3c1bf3550aa6890666fc4353bd33.tar.xz
linux-7e57b85c444c3c1bf3550aa6890666fc4353bd33.zip
IB/mlx4: Add support for setting RoCEv2 gids in hardware
To tell hardware about a gid with type RoCEv2, software needs a new modifier to the SET_PORT command: MLX4_SET_PORT_ROCE_ADDR. This can replace the old method, MLX4_SET_PORT_GID_TABLE, for RoCEv1 gids. Signed-off-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx4/cmd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mlx4/cmd.h b/include/linux/mlx4/cmd.h
index 58391f2e0414..116b284bc4ce 100644
--- a/include/linux/mlx4/cmd.h
+++ b/include/linux/mlx4/cmd.h
@@ -206,7 +206,8 @@ enum {
MLX4_SET_PORT_GID_TABLE = 0x5,
MLX4_SET_PORT_PRIO2TC = 0x8,
MLX4_SET_PORT_SCHEDULER = 0x9,
- MLX4_SET_PORT_VXLAN = 0xB
+ MLX4_SET_PORT_VXLAN = 0xB,
+ MLX4_SET_PORT_ROCE_ADDR = 0xD
};
enum {