]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
IB/mlx4: Move user vendor structures
authorLeon Romanovsky <leon@kernel.org>
Thu, 22 Sep 2016 14:31:14 +0000 (17:31 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 7 Oct 2016 20:54:36 +0000 (16:54 -0400)
This patch moves mlx4 vendor's specific structures to
common UAPI folder which will be visible to all consumers.

These structures are used by user-space library driver
(libmlx4) and currently manually copied to that library.

This move will allow cross-compile against these files and
simplify introduction of vendor specific data.

Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
MAINTAINERS
drivers/infiniband/hw/mlx4/cq.c
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/qp.c
drivers/infiniband/hw/mlx4/srq.c
include/uapi/rdma/Kbuild
include/uapi/rdma/mlx4-abi.h [moved from drivers/infiniband/hw/mlx4/user.h with 97% similarity]

index 22fd3b7f5a319b17ec5fd3f8aa98b09fd5502fc0..0af558f501cf2d860299ac6e9a73f0a5f0fe8b75 100644 (file)
@@ -7801,6 +7801,7 @@ Q:        http://patchwork.ozlabs.org/project/netdev/list/
 S:     Supported
 F:     drivers/net/ethernet/mellanox/mlx4/
 F:     include/linux/mlx4/
+F:     include/uapi/rdma/mlx4-abi.h
 
 MELLANOX MLX4 IB driver
 M:     Yishai Hadas <yishaih@mellanox.com>
index d6fc8a6e8c3324fcef4d9081167cce9cc998f13b..2f0b4eed7eaeaef28d08e47a18df89906dcb1da0 100644 (file)
@@ -37,7 +37,7 @@
 #include <linux/slab.h>
 
 #include "mlx4_ib.h"
-#include "user.h"
+#include <rdma/mlx4-abi.h>
 
 static void mlx4_ib_cq_comp(struct mlx4_cq *cq)
 {
index 3ae64cefc39ef82e99d834c1c784446e8218c58f..3c6d6103d18bf67669135bb202a4fb433ed08456 100644 (file)
@@ -55,7 +55,7 @@
 #include <linux/mlx4/qp.h>
 
 #include "mlx4_ib.h"
-#include "user.h"
+#include <rdma/mlx4-abi.h>
 
 #define DRV_NAME       MLX4_IB_DRV_NAME
 #define DRV_VERSION    "2.2-1"
index 768085f5956645869e65aa5f81edb3f0b972a99b..44c8a0da1507e58eef3332b73e89fdac0db8d398 100644 (file)
@@ -47,7 +47,7 @@
 #include <linux/mlx4/qp.h>
 
 #include "mlx4_ib.h"
-#include "user.h"
+#include <rdma/mlx4-abi.h>
 
 static void mlx4_ib_lock_cqs(struct mlx4_ib_cq *send_cq,
                             struct mlx4_ib_cq *recv_cq);
index 0597f3eef5d03ce4729c0fc0f5f0ffd076ae1176..7dd3f267f06b2393f1ba0ac24cc4555c2aa39002 100644 (file)
@@ -37,7 +37,7 @@
 #include <linux/vmalloc.h>
 
 #include "mlx4_ib.h"
-#include "user.h"
+#include <rdma/mlx4-abi.h>
 
 static void *get_wqe(struct mlx4_ib_srq *srq, int n)
 {
index 59b2c9b34423b9ca0d23854bd034b13491a234b7..a1090ebc0b3453b0f7d874ca2db208541baa9b84 100644 (file)
@@ -9,4 +9,5 @@ header-y += hfi/
 header-y += rdma_user_rxe.h
 header-y += cxgb3-abi.h
 header-y += cxgb4-abi.h
+header-y += mlx4-abi.h
 header-y += mlx5-abi.h
similarity index 97%
rename from drivers/infiniband/hw/mlx4/user.h
rename to include/uapi/rdma/mlx4-abi.h
index 07e6769ef43bc8fb5b38af0d5c86a712a7ef6638..af431752655c576fe9bc5cf180e32a84dea0c69a 100644 (file)
@@ -31,8 +31,8 @@
  * SOFTWARE.
  */
 
-#ifndef MLX4_IB_USER_H
-#define MLX4_IB_USER_H
+#ifndef MLX4_ABI_USER_H
+#define MLX4_ABI_USER_H
 
 #include <linux/types.h>
 
@@ -104,4 +104,4 @@ struct mlx4_ib_create_qp {
        __u8    reserved[5];
 };
 
-#endif /* MLX4_IB_USER_H */
+#endif /* MLX4_ABI_USER_H */