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