Commit b6b87d2e authored by Devesh Sharma's avatar Devesh Sharma Committed by Roland Dreier
Browse files

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: default avatarDevesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: default avatarSelvin Xavier <selvin.xavier@emulex.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 1eebbb6e
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#define __OCRDMA_ABI_H__ #define __OCRDMA_ABI_H__
#define OCRDMA_ABI_VERSION 1 #define OCRDMA_ABI_VERSION 1
#define OCRDMA_BE_ROCE_ABI_VERSION 1
/* user kernel communication data structures. */ /* user kernel communication data structures. */
struct ocrdma_alloc_ucontext_resp { struct ocrdma_alloc_ucontext_resp {
......
...@@ -478,6 +478,7 @@ static struct ocrdma_driver ocrdma_drv = { ...@@ -478,6 +478,7 @@ static struct ocrdma_driver ocrdma_drv = {
.add = ocrdma_add, .add = ocrdma_add,
.remove = ocrdma_remove, .remove = ocrdma_remove,
.state_change_handler = ocrdma_event_handler, .state_change_handler = ocrdma_event_handler,
.be_abi_version = OCRDMA_BE_ROCE_ABI_VERSION,
}; };
static void ocrdma_unregister_inet6addr_notifier(void) static void ocrdma_unregister_inet6addr_notifier(void)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment