summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/vport.h
diff options
context:
space:
mode:
authorAchiad Shochat2015-12-23 17:47:19 +0100
committerDoug Ledford2015-12-23 18:07:36 +0100
commit0de60af649533ad8d9aaeab1df710e6a728d45ea (patch)
treeff39df9856ab1ccfbe8d086916bc66a2312bc87e /include/linux/mlx5/vport.h
parentnet/mlx5_core: Break down the vport mac address query function (diff)
downloadkernel-qcow2-linux-0de60af649533ad8d9aaeab1df710e6a728d45ea.tar.gz
kernel-qcow2-linux-0de60af649533ad8d9aaeab1df710e6a728d45ea.tar.xz
kernel-qcow2-linux-0de60af649533ad8d9aaeab1df710e6a728d45ea.zip
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__ */