mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 04:47:42 +07:00
7f00feaf10
This patch implements an ILA tanslation table. This table can be configured with identifier to locator mappings, and can be be queried to resolve a mapping. Queries can be parameterized based on interface, direction (incoming or outoing), and matching locator. The table is implemented using rhashtable and is configured via netlink (through "ip ila .." in iproute). The table may be used as alternative means to do do ILA tanslations other than the lw tunnels Signed-off-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
38 lines
645 B
C
38 lines
645 B
C
/* ila.h - ILA Interface */
|
|
|
|
#ifndef _UAPI_LINUX_ILA_H
|
|
#define _UAPI_LINUX_ILA_H
|
|
|
|
/* NETLINK_GENERIC related info */
|
|
#define ILA_GENL_NAME "ila"
|
|
#define ILA_GENL_VERSION 0x1
|
|
|
|
enum {
|
|
ILA_ATTR_UNSPEC,
|
|
ILA_ATTR_LOCATOR, /* u64 */
|
|
ILA_ATTR_IDENTIFIER, /* u64 */
|
|
ILA_ATTR_LOCATOR_MATCH, /* u64 */
|
|
ILA_ATTR_IFINDEX, /* s32 */
|
|
ILA_ATTR_DIR, /* u32 */
|
|
|
|
__ILA_ATTR_MAX,
|
|
};
|
|
|
|
#define ILA_ATTR_MAX (__ILA_ATTR_MAX - 1)
|
|
|
|
enum {
|
|
ILA_CMD_UNSPEC,
|
|
ILA_CMD_ADD,
|
|
ILA_CMD_DEL,
|
|
ILA_CMD_GET,
|
|
|
|
__ILA_CMD_MAX,
|
|
};
|
|
|
|
#define ILA_CMD_MAX (__ILA_CMD_MAX - 1)
|
|
|
|
#define ILA_DIR_IN (1 << 0)
|
|
#define ILA_DIR_OUT (1 << 1)
|
|
|
|
#endif /* _UAPI_LINUX_ILA_H */
|