summaryrefslogtreecommitdiff
path: root/include/linux/sunrpc/rdma_rn.h
blob: 7d032ca057afbe541580ebb4ff7ba87d9d5356fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * * Copyright (c) 2024, Oracle and/or its affiliates.
 */

#ifndef _LINUX_SUNRPC_RDMA_RN_H
#define _LINUX_SUNRPC_RDMA_RN_H

#include <rdma/ib_verbs.h>

/**
 * rpcrdma_notification - request removal notification
 */
struct rpcrdma_notification {
	void			(*rn_done)(struct rpcrdma_notification *rn);
	u32			rn_index;
};

int rpcrdma_rn_register(struct ib_device *device,
			struct rpcrdma_notification *rn,
			void (*done)(struct rpcrdma_notification *rn));
void rpcrdma_rn_unregister(struct ib_device *device,
			   struct rpcrdma_notification *rn);
int rpcrdma_ib_client_register(void);
void rpcrdma_ib_client_unregister(void);

#endif /* _LINUX_SUNRPC_RDMA_RN_H */