2020-12-01 12:20:43 -07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/*
|
|
|
|
* Shared Memory Communications over RDMA (SMC-R) and RoCE
|
|
|
|
*
|
|
|
|
* SMC Generic netlink operations
|
|
|
|
*
|
|
|
|
* Copyright IBM Corp. 2020
|
|
|
|
*
|
|
|
|
* Author(s): Guvenc Gulce <guvenc@linux.ibm.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SMC_NETLINK_H
|
|
|
|
#define _SMC_NETLINK_H
|
|
|
|
|
|
|
|
#include <net/netlink.h>
|
|
|
|
#include <net/genetlink.h>
|
|
|
|
|
|
|
|
extern struct genl_family smc_gen_nl_family;
|
|
|
|
|
2021-09-14 01:35:05 -07:00
|
|
|
extern const struct nla_policy smc_gen_ueid_policy[];
|
|
|
|
|
2020-12-01 12:20:44 -07:00
|
|
|
struct smc_nl_dmp_ctx {
|
2021-06-16 07:52:57 -07:00
|
|
|
int pos[3];
|
2020-12-01 12:20:44 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
static inline struct smc_nl_dmp_ctx *smc_nl_dmp_ctx(struct netlink_callback *c)
|
|
|
|
{
|
|
|
|
return (struct smc_nl_dmp_ctx *)c->ctx;
|
|
|
|
}
|
|
|
|
|
2020-12-01 12:20:43 -07:00
|
|
|
int smc_nl_init(void) __init;
|
|
|
|
void smc_nl_exit(void);
|
|
|
|
|
|
|
|
#endif
|