2017-11-01 17:08:43 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
2015-08-17 23:42:27 +03:00
|
|
|
/* ila.h - ILA Interface */
|
|
|
|
|
|
|
|
#ifndef _UAPI_LINUX_ILA_H
|
|
|
|
#define _UAPI_LINUX_ILA_H
|
|
|
|
|
2015-12-16 02:41:38 +03:00
|
|
|
/* NETLINK_GENERIC related info */
|
|
|
|
#define ILA_GENL_NAME "ila"
|
|
|
|
#define ILA_GENL_VERSION 0x1
|
|
|
|
|
2015-08-17 23:42:27 +03:00
|
|
|
enum {
|
|
|
|
ILA_ATTR_UNSPEC,
|
|
|
|
ILA_ATTR_LOCATOR, /* u64 */
|
2015-12-16 02:41:38 +03:00
|
|
|
ILA_ATTR_IDENTIFIER, /* u64 */
|
|
|
|
ILA_ATTR_LOCATOR_MATCH, /* u64 */
|
|
|
|
ILA_ATTR_IFINDEX, /* s32 */
|
|
|
|
ILA_ATTR_DIR, /* u32 */
|
2016-04-25 11:25:16 +03:00
|
|
|
ILA_ATTR_PAD,
|
2016-04-23 21:46:57 +03:00
|
|
|
ILA_ATTR_CSUM_MODE, /* u8 */
|
2017-11-06 02:58:24 +03:00
|
|
|
ILA_ATTR_IDENT_TYPE, /* u8 */
|
2017-11-06 02:58:25 +03:00
|
|
|
ILA_ATTR_HOOK_TYPE, /* u8 */
|
2015-08-17 23:42:27 +03:00
|
|
|
|
|
|
|
__ILA_ATTR_MAX,
|
|
|
|
};
|
|
|
|
|
|
|
|
#define ILA_ATTR_MAX (__ILA_ATTR_MAX - 1)
|
|
|
|
|
2015-12-16 02:41:38 +03:00
|
|
|
enum {
|
|
|
|
ILA_CMD_UNSPEC,
|
|
|
|
ILA_CMD_ADD,
|
|
|
|
ILA_CMD_DEL,
|
|
|
|
ILA_CMD_GET,
|
2018-06-28 00:39:02 +03:00
|
|
|
ILA_CMD_FLUSH,
|
2015-12-16 02:41:38 +03:00
|
|
|
|
|
|
|
__ILA_CMD_MAX,
|
|
|
|
};
|
|
|
|
|
|
|
|
#define ILA_CMD_MAX (__ILA_CMD_MAX - 1)
|
|
|
|
|
|
|
|
#define ILA_DIR_IN (1 << 0)
|
|
|
|
#define ILA_DIR_OUT (1 << 1)
|
|
|
|
|
2016-04-23 21:46:57 +03:00
|
|
|
enum {
|
|
|
|
ILA_CSUM_ADJUST_TRANSPORT,
|
|
|
|
ILA_CSUM_NEUTRAL_MAP,
|
|
|
|
ILA_CSUM_NO_ACTION,
|
2017-11-06 02:58:23 +03:00
|
|
|
ILA_CSUM_NEUTRAL_MAP_AUTO,
|
2016-04-23 21:46:57 +03:00
|
|
|
};
|
|
|
|
|
2017-11-06 02:58:24 +03:00
|
|
|
enum {
|
|
|
|
ILA_ATYPE_IID = 0,
|
|
|
|
ILA_ATYPE_LUID,
|
|
|
|
ILA_ATYPE_VIRT_V4,
|
|
|
|
ILA_ATYPE_VIRT_UNI_V6,
|
|
|
|
ILA_ATYPE_VIRT_MULTI_V6,
|
|
|
|
ILA_ATYPE_NONLOCAL_ADDR,
|
|
|
|
ILA_ATYPE_RSVD_1,
|
|
|
|
ILA_ATYPE_RSVD_2,
|
|
|
|
|
|
|
|
ILA_ATYPE_USE_FORMAT = 32, /* Get type from type field in identifier */
|
|
|
|
};
|
2017-11-06 02:58:25 +03:00
|
|
|
|
|
|
|
enum {
|
|
|
|
ILA_HOOK_ROUTE_OUTPUT,
|
|
|
|
ILA_HOOK_ROUTE_INPUT,
|
|
|
|
};
|
|
|
|
|
2015-08-17 23:42:27 +03:00
|
|
|
#endif /* _UAPI_LINUX_ILA_H */
|