From: Devesh Sharma Date: Tue, 4 Feb 2014 06:26:58 +0000 (+0530) Subject: RDMA/ocrdma: ABI versioning between ocrdma and be2net X-Git-Tag: firefly_0821_release~176^2~4157^2^8~13 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b6b87d2e6930b6dbb926998d3250c61cef1ec562;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Selvin Xavier Signed-off-by: Roland Dreier --- 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 @@ #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 { 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 = { .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)