]>
Commit | Line | Data |
---|---|---|
6f52b16c | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
6812baab TR |
2 | /* |
3 | * Shared Memory Communications over RDMA (SMC-R) and RoCE | |
4 | * | |
5 | * Definitions for generic netlink based configuration of an SMC-R PNET table | |
6 | * | |
7 | * Copyright IBM Corp. 2016 | |
8 | * | |
9 | * Author(s): Thomas Richter <tmricht@linux.vnet.ibm.com> | |
10 | */ | |
11 | ||
12 | #ifndef _UAPI_LINUX_SMC_H_ | |
13 | #define _UAPI_LINUX_SMC_H_ | |
14 | ||
15 | /* Netlink SMC_PNETID attributes */ | |
16 | enum { | |
17 | SMC_PNETID_UNSPEC, | |
18 | SMC_PNETID_NAME, | |
19 | SMC_PNETID_ETHNAME, | |
20 | SMC_PNETID_IBNAME, | |
21 | SMC_PNETID_IBPORT, | |
22 | __SMC_PNETID_MAX, | |
23 | SMC_PNETID_MAX = __SMC_PNETID_MAX - 1 | |
24 | }; | |
25 | ||
26 | enum { /* SMC PNET Table commands */ | |
27 | SMC_PNETID_GET = 1, | |
28 | SMC_PNETID_ADD, | |
29 | SMC_PNETID_DEL, | |
30 | SMC_PNETID_FLUSH | |
31 | }; | |
32 | ||
33 | #define SMCR_GENL_FAMILY_NAME "SMC_PNETID" | |
34 | #define SMCR_GENL_FAMILY_VERSION 1 | |
35 | ||
36 | #endif /* _UAPI_LINUX_SMC_H */ |