WIP FPC-III support
[linux/fpc-iii.git] / net / smc / smc_netlink.h
blob3477265cba6caff83f8f8315b17ef2c9599cad70
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Shared Memory Communications over RDMA (SMC-R) and RoCE
5 * SMC Generic netlink operations
7 * Copyright IBM Corp. 2020
9 * Author(s): Guvenc Gulce <guvenc@linux.ibm.com>
12 #ifndef _SMC_NETLINK_H
13 #define _SMC_NETLINK_H
15 #include <net/netlink.h>
16 #include <net/genetlink.h>
18 extern struct genl_family smc_gen_nl_family;
20 struct smc_nl_dmp_ctx {
21 int pos[2];
24 static inline struct smc_nl_dmp_ctx *smc_nl_dmp_ctx(struct netlink_callback *c)
26 return (struct smc_nl_dmp_ctx *)c->ctx;
29 int smc_nl_init(void) __init;
30 void smc_nl_exit(void);
32 #endif