aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ocrdma/ocrdma_main.c
diff options
context:
space:
mode:
authorNaresh Gottumukkala <bgottumukkala@emulex.com>2013-08-26 05:57:49 -0400
committerRoland Dreier <roland@purestorage.com>2013-09-03 00:18:45 -0400
commit38754397152e0e9ab0d2854064ef0ff4deabdd7e (patch)
tree28a6ae4375ce5b8ba246d1b96b74fdfcbba3b803 /drivers/infiniband/hw/ocrdma/ocrdma_main.c
parent117e6dd1c5c96ef1edd6e5def4dd9937d98cae94 (diff)
RDMA/ocrdma: Add ABI versioning support
Add ABI versioning support between driver and userspace library. Signed-off-by: Naresh Gottumukkala <bgottumukkala@emulex.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma/ocrdma_main.c')
-rw-r--r--drivers/infiniband/hw/ocrdma/ocrdma_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_main.c b/drivers/infiniband/hw/ocrdma/ocrdma_main.c
index 7d43ba924bfb..56e004940f18 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma_main.c
+++ b/drivers/infiniband/hw/ocrdma/ocrdma_main.c
@@ -39,6 +39,7 @@
39#include "ocrdma_ah.h" 39#include "ocrdma_ah.h"
40#include "be_roce.h" 40#include "be_roce.h"
41#include "ocrdma_hw.h" 41#include "ocrdma_hw.h"
42#include "ocrdma_abi.h"
42 43
43MODULE_VERSION(OCRDMA_ROCE_DEV_VERSION); 44MODULE_VERSION(OCRDMA_ROCE_DEV_VERSION);
44MODULE_DESCRIPTION("Emulex RoCE HCA Driver"); 45MODULE_DESCRIPTION("Emulex RoCE HCA Driver");
@@ -265,6 +266,7 @@ static int ocrdma_register_device(struct ocrdma_dev *dev)
265 memcpy(dev->ibdev.node_desc, OCRDMA_NODE_DESC, 266 memcpy(dev->ibdev.node_desc, OCRDMA_NODE_DESC,
266 sizeof(OCRDMA_NODE_DESC)); 267 sizeof(OCRDMA_NODE_DESC));
267 dev->ibdev.owner = THIS_MODULE; 268 dev->ibdev.owner = THIS_MODULE;
269 dev->ibdev.uverbs_abi_ver = OCRDMA_ABI_VERSION;
268 dev->ibdev.uverbs_cmd_mask = 270 dev->ibdev.uverbs_cmd_mask =
269 OCRDMA_UVERBS(GET_CONTEXT) | 271 OCRDMA_UVERBS(GET_CONTEXT) |
270 OCRDMA_UVERBS(QUERY_DEVICE) | 272 OCRDMA_UVERBS(QUERY_DEVICE) |