summaryrefslogtreecommitdiff
path: root/include/linux/mlx5/vport.h
diff options
context:
space:
mode:
authorAchiad Shochat <achiad@mellanox.com>2015-12-23 19:47:19 +0300
committerDoug Ledford <dledford@redhat.com>2015-12-23 20:07:36 +0300
commit0de60af649533ad8d9aaeab1df710e6a728d45ea (patch)
treeff39df9856ab1ccfbe8d086916bc66a2312bc87e /include/linux/mlx5/vport.h
parente5f6175c5b66ce4986df7a69baae9913e8d4a430 (diff)
downloadlinux-0de60af649533ad8d9aaeab1df710e6a728d45ea.tar.xz
net/mlx5_core: Introduce access functions to enable/disable RoCE
A mlx5 Ethernet port must be explicitly enabled for RoCE. When RoCE is not enabled on the port, the NIC will refuse to create QPs attached to it and incoming RoCE packets will be considered by the NIC as plain Ethernet packets. Signed-off-by: Achiad Shochat <achiad@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/linux/mlx5/vport.h')
-rw-r--r--include/linux/mlx5/vport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mlx5/vport.h b/include/linux/mlx5/vport.h
index 967e0fd06e89..4c9ac604cccd 100644
--- a/include/linux/mlx5/vport.h
+++ b/include/linux/mlx5/vport.h
@@ -52,4 +52,7 @@ int mlx5_query_hca_vport_system_image_guid(struct mlx5_core_dev *dev,
int mlx5_query_hca_vport_node_guid(struct mlx5_core_dev *dev,
u64 *node_guid);
+int mlx5_nic_vport_enable_roce(struct mlx5_core_dev *mdev);
+int mlx5_nic_vport_disable_roce(struct mlx5_core_dev *mdev);
+
#endif /* __MLX5_VPORT_H__ */