Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Shared Memory Communications over RDMA (SMC-R) and RoCE
0004  *
0005  *  SMC Generic netlink operations
0006  *
0007  *  Copyright IBM Corp. 2020
0008  *
0009  *  Author(s):  Guvenc Gulce <guvenc@linux.ibm.com>
0010  */
0011 
0012 #ifndef _SMC_NETLINK_H
0013 #define _SMC_NETLINK_H
0014 
0015 #include <net/netlink.h>
0016 #include <net/genetlink.h>
0017 
0018 extern struct genl_family smc_gen_nl_family;
0019 
0020 extern const struct nla_policy smc_gen_ueid_policy[];
0021 
0022 struct smc_nl_dmp_ctx {
0023     int pos[3];
0024 };
0025 
0026 static inline struct smc_nl_dmp_ctx *smc_nl_dmp_ctx(struct netlink_callback *c)
0027 {
0028     return (struct smc_nl_dmp_ctx *)c->ctx;
0029 }
0030 
0031 int smc_nl_init(void) __init;
0032 void smc_nl_exit(void);
0033 
0034 #endif