aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorDevesh Sharma <devesh.sharma@emulex.com>2014-02-04 01:26:58 -0500
committerRoland Dreier <roland@purestorage.com>2014-04-03 11:29:51 -0400
commitb6b87d2e6930b6dbb926998d3250c61cef1ec562 (patch)
treedc069e1cc731d3c33dfb2eaf57bd69f32837d058 /drivers/infiniband/hw
parent1eebbb6ec3eb760f77240af7e850e93222e89afe (diff)
RDMA/ocrdma: ABI versioning between ocrdma and be2net
While loading RoCE driver be2net driver should check for ABI version to catch functional incompatibilities. Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com> Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/ocrdma/ocrdma_abi.h1
-rw-r--r--drivers/infiniband/hw/ocrdma/ocrdma_main.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_abi.h b/drivers/infiniband/hw/ocrdma/ocrdma_abi.h
index fbac8eb44036..2a14d4a36739 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma_abi.h
+++ b/drivers/infiniband/hw/ocrdma/ocrdma_abi.h
@@ -29,6 +29,7 @@
29#define __OCRDMA_ABI_H__ 29#define __OCRDMA_ABI_H__
30 30
31#define OCRDMA_ABI_VERSION 1 31#define OCRDMA_ABI_VERSION 1
32#define OCRDMA_BE_ROCE_ABI_VERSION 1
32/* user kernel communication data structures. */ 33/* user kernel communication data structures. */
33 34
34struct ocrdma_alloc_ucontext_resp { 35struct ocrdma_alloc_ucontext_resp {
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_main.c b/drivers/infiniband/hw/ocrdma/ocrdma_main.c
index b9e147816703..fc9d71edfb4e 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma_main.c
+++ b/drivers/infiniband/hw/ocrdma/ocrdma_main.c
@@ -478,6 +478,7 @@ static struct ocrdma_driver ocrdma_drv = {
478 .add = ocrdma_add, 478 .add = ocrdma_add,
479 .remove = ocrdma_remove, 479 .remove = ocrdma_remove,
480 .state_change_handler = ocrdma_event_handler, 480 .state_change_handler = ocrdma_event_handler,
481 .be_abi_version = OCRDMA_BE_ROCE_ABI_VERSION,
481}; 482};
482 483
483static void ocrdma_unregister_inet6addr_notifier(void) 484static void ocrdma_unregister_inet6addr_notifier(void)