mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
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>
This commit is contained in:
parent
117e6dd1c5
commit
3875439715
@ -28,6 +28,7 @@
|
|||||||
#ifndef __OCRDMA_ABI_H__
|
#ifndef __OCRDMA_ABI_H__
|
||||||
#define __OCRDMA_ABI_H__
|
#define __OCRDMA_ABI_H__
|
||||||
|
|
||||||
|
#define OCRDMA_ABI_VERSION 1
|
||||||
/* user kernel communication data structures. */
|
/* user kernel communication data structures. */
|
||||||
|
|
||||||
struct ocrdma_alloc_ucontext_resp {
|
struct ocrdma_alloc_ucontext_resp {
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
#include "ocrdma_ah.h"
|
#include "ocrdma_ah.h"
|
||||||
#include "be_roce.h"
|
#include "be_roce.h"
|
||||||
#include "ocrdma_hw.h"
|
#include "ocrdma_hw.h"
|
||||||
|
#include "ocrdma_abi.h"
|
||||||
|
|
||||||
MODULE_VERSION(OCRDMA_ROCE_DEV_VERSION);
|
MODULE_VERSION(OCRDMA_ROCE_DEV_VERSION);
|
||||||
MODULE_DESCRIPTION("Emulex RoCE HCA Driver");
|
MODULE_DESCRIPTION("Emulex RoCE HCA Driver");
|
||||||
@ -265,6 +266,7 @@ static int ocrdma_register_device(struct ocrdma_dev *dev)
|
|||||||
memcpy(dev->ibdev.node_desc, OCRDMA_NODE_DESC,
|
memcpy(dev->ibdev.node_desc, OCRDMA_NODE_DESC,
|
||||||
sizeof(OCRDMA_NODE_DESC));
|
sizeof(OCRDMA_NODE_DESC));
|
||||||
dev->ibdev.owner = THIS_MODULE;
|
dev->ibdev.owner = THIS_MODULE;
|
||||||
|
dev->ibdev.uverbs_abi_ver = OCRDMA_ABI_VERSION;
|
||||||
dev->ibdev.uverbs_cmd_mask =
|
dev->ibdev.uverbs_cmd_mask =
|
||||||
OCRDMA_UVERBS(GET_CONTEXT) |
|
OCRDMA_UVERBS(GET_CONTEXT) |
|
||||||
OCRDMA_UVERBS(QUERY_DEVICE) |
|
OCRDMA_UVERBS(QUERY_DEVICE) |
|
||||||
|
Loading…
Reference in New Issue
Block a user