ila.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /* ila.h - ILA Interface */
  3. #ifndef _UAPI_LINUX_ILA_H
  4. #define _UAPI_LINUX_ILA_H
  5. /* NETLINK_GENERIC related info */
  6. #define ILA_GENL_NAME "ila"
  7. #define ILA_GENL_VERSION 0x1
  8. enum {
  9. ILA_ATTR_UNSPEC,
  10. ILA_ATTR_LOCATOR, /* u64 */
  11. ILA_ATTR_IDENTIFIER, /* u64 */
  12. ILA_ATTR_LOCATOR_MATCH, /* u64 */
  13. ILA_ATTR_IFINDEX, /* s32 */
  14. ILA_ATTR_DIR, /* u32 */
  15. ILA_ATTR_PAD,
  16. ILA_ATTR_CSUM_MODE, /* u8 */
  17. ILA_ATTR_IDENT_TYPE, /* u8 */
  18. ILA_ATTR_HOOK_TYPE, /* u8 */
  19. __ILA_ATTR_MAX,
  20. };
  21. #define ILA_ATTR_MAX (__ILA_ATTR_MAX - 1)
  22. enum {
  23. ILA_CMD_UNSPEC,
  24. ILA_CMD_ADD,
  25. ILA_CMD_DEL,
  26. ILA_CMD_GET,
  27. ILA_CMD_FLUSH,
  28. __ILA_CMD_MAX,
  29. };
  30. #define ILA_CMD_MAX (__ILA_CMD_MAX - 1)
  31. #define ILA_DIR_IN (1 << 0)
  32. #define ILA_DIR_OUT (1 << 1)
  33. enum {
  34. ILA_CSUM_ADJUST_TRANSPORT,
  35. ILA_CSUM_NEUTRAL_MAP,
  36. ILA_CSUM_NO_ACTION,
  37. ILA_CSUM_NEUTRAL_MAP_AUTO,
  38. };
  39. enum {
  40. ILA_ATYPE_IID = 0,
  41. ILA_ATYPE_LUID,
  42. ILA_ATYPE_VIRT_V4,
  43. ILA_ATYPE_VIRT_UNI_V6,
  44. ILA_ATYPE_VIRT_MULTI_V6,
  45. ILA_ATYPE_NONLOCAL_ADDR,
  46. ILA_ATYPE_RSVD_1,
  47. ILA_ATYPE_RSVD_2,
  48. ILA_ATYPE_USE_FORMAT = 32, /* Get type from type field in identifier */
  49. };
  50. enum {
  51. ILA_HOOK_ROUTE_OUTPUT,
  52. ILA_HOOK_ROUTE_INPUT,
  53. };
  54. #endif /* _UAPI_LINUX_ILA_H */