blob: 5ce2c0a89ccda1430d2afcce8184b38911d08f31 (
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
28
29
30
31
32
|
/* 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;
struct smc_nl_dmp_ctx {
int pos[3];
};
static inline struct smc_nl_dmp_ctx *smc_nl_dmp_ctx(struct netlink_callback *c)
{
return (struct smc_nl_dmp_ctx *)c->ctx;
}
int smc_nl_init(void) __init;
void smc_nl_exit(void);
#endif
|