]>
Commit | Line | Data |
---|---|---|
e8372d9d GG |
1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | /* | |
3 | * Shared Memory Communications over RDMA (SMC-R) and RoCE | |
4 | * | |
5 | * SMC Generic netlink operations | |
6 | * | |
7 | * Copyright IBM Corp. 2020 | |
8 | * | |
9 | * Author(s): Guvenc Gulce <[email protected]> | |
10 | */ | |
11 | ||
12 | #ifndef _SMC_NETLINK_H | |
13 | #define _SMC_NETLINK_H | |
14 | ||
15 | #include <net/netlink.h> | |
16 | #include <net/genetlink.h> | |
17 | ||
18 | extern struct genl_family smc_gen_nl_family; | |
19 | ||
fa086662 KG |
20 | extern const struct nla_policy smc_gen_ueid_policy[]; |
21 | ||
099b990b | 22 | struct smc_nl_dmp_ctx { |
f0dd7bf5 | 23 | int pos[3]; |
099b990b GG |
24 | }; |
25 | ||
26 | static inline struct smc_nl_dmp_ctx *smc_nl_dmp_ctx(struct netlink_callback *c) | |
27 | { | |
28 | return (struct smc_nl_dmp_ctx *)c->ctx; | |
29 | } | |
30 | ||
e8372d9d GG |
31 | int smc_nl_init(void) __init; |
32 | void smc_nl_exit(void); | |
33 | ||
34 | #endif |