]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
RDMA/ocrdma: ABI versioning between ocrdma and be2net
authorDevesh Sharma <devesh.sharma@emulex.com>
Tue, 4 Feb 2014 06:26:58 +0000 (11:56 +0530)
committerRoland Dreier <roland@purestorage.com>
Thu, 3 Apr 2014 15:29:51 +0000 (08:29 -0700)
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>
drivers/infiniband/hw/ocrdma/ocrdma_abi.h
drivers/infiniband/hw/ocrdma/ocrdma_main.c

index fbac8eb44036b02ff7c1233f76e951a0e0adfe8a..2a14d4a36739b48a2371c133ae77638d3cc314e1 100644 (file)
@@ -29,6 +29,7 @@
 #define __OCRDMA_ABI_H__
 
 #define OCRDMA_ABI_VERSION 1
+#define OCRDMA_BE_ROCE_ABI_VERSION 1
 /* user kernel communication data structures. */
 
 struct ocrdma_alloc_ucontext_resp {
index b9e1478167036c8427e57ec0815e7111a8bfdc72..fc9d71edfb4e9fef7667d865a2cf4770bdabd371 100644 (file)
@@ -478,6 +478,7 @@ static struct ocrdma_driver ocrdma_drv = {
        .add                    = ocrdma_add,
        .remove                 = ocrdma_remove,
        .state_change_handler   = ocrdma_event_handler,
+       .be_abi_version         = OCRDMA_BE_ROCE_ABI_VERSION,
 };
 
 static void ocrdma_unregister_inet6addr_notifier(void)