blob: 0e11ca421ca49344fd03763c3123f44bfed2c970 [file] [log] [blame]
Christopher Ferris25981132017-11-14 16:53:49 -08001/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Christopher Ferris0543f742017-07-26 13:09:46 -07002/*
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 */
16enum {
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
26enum { /* 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 */