]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
IB/hns: Move HNS RoCE user vendor structures
authorLeon Romanovsky <leon@kernel.org>
Wed, 19 Oct 2016 17:13:07 +0000 (20:13 +0300)
committerDoug Ledford <dledford@redhat.com>
Sat, 3 Dec 2016 19:23:14 +0000 (14:23 -0500)
This patch moves HNS vendor's specific structures to
common UAPI folder which will be visible to all consumers.

Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_cq.c
drivers/infiniband/hw/hns/hns_roce_main.c
drivers/infiniband/hw/hns/hns_roce_qp.c
include/uapi/rdma/Kbuild
include/uapi/rdma/hns-abi.h [moved from drivers/infiniband/hw/hns/hns_roce_user.h with 94% similarity]

index ff9a6a3c826a916a507c9bcb52f7990723339e25..589496c8fb9ec90cc6d8de087a342533206ca99a 100644 (file)
@@ -35,7 +35,7 @@
 #include "hns_roce_device.h"
 #include "hns_roce_cmd.h"
 #include "hns_roce_hem.h"
-#include "hns_roce_user.h"
+#include <rdma/hns-abi.h>
 #include "hns_roce_common.h"
 
 static void hns_roce_ib_cq_comp(struct hns_roce_cq *hr_cq)
index eddb053ff0ba087978932cf5a5b7b8823a742a0f..4953d9cb83a7ff1e1fc5d8f11667bfadd16926b9 100644 (file)
@@ -38,7 +38,7 @@
 #include <rdma/ib_cache.h>
 #include "hns_roce_common.h"
 #include "hns_roce_device.h"
-#include "hns_roce_user.h"
+#include <rdma/hns-abi.h>
 #include "hns_roce_hem.h"
 
 /**
index 4775b5c725a959d39ad80d23c194ab74b20051a5..f036f32f15d3caa3c67102f5375b65a57df91355 100644 (file)
@@ -37,7 +37,7 @@
 #include "hns_roce_common.h"
 #include "hns_roce_device.h"
 #include "hns_roce_hem.h"
-#include "hns_roce_user.h"
+#include <rdma/hns-abi.h>
 
 #define SQP_NUM                                (2 * HNS_ROCE_MAX_PORTS)
 
index f14ab7ff5fee75769c1b187ab371831866d38dae..b54f10d3c1f701f4aa3643589724714b851a25d8 100644 (file)
@@ -14,3 +14,4 @@ header-y += mlx5-abi.h
 header-y += mthca-abi.h
 header-y += nes-abi.h
 header-y += ocrdma-abi.h
+header-y += hns-abi.h
similarity index 94%
rename from drivers/infiniband/hw/hns/hns_roce_user.h
rename to include/uapi/rdma/hns-abi.h
index a28f761a9f6579dd134507960670b8f82fcc4eaf..5d7401963e35adf0e33da6432d8d2c513ed9f7a3 100644 (file)
  * SOFTWARE.
  */
 
-#ifndef _HNS_ROCE_USER_H
-#define _HNS_ROCE_USER_H
+#ifndef HNS_ABI_USER_H
+#define HNS_ABI_USER_H
+
+#include <linux/types.h>
 
 struct hns_roce_ib_create_cq {
        __u64   buf_addr;
@@ -49,5 +51,4 @@ struct hns_roce_ib_create_qp {
 struct hns_roce_ib_alloc_ucontext_resp {
        __u32   qp_tab_size;
 };
-
-#endif /*_HNS_ROCE_USER_H */
+#endif /* HNS_ABI_USER_H */