Home | History | Annotate | Download | only in linux
      1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
      2 /* ila.h - ILA Interface */
      3 
      4 #ifndef _LINUX_ILA_H
      5 #define _LINUX_ILA_H
      6 
      7 /* NETLINK_GENERIC related info */
      8 #define ILA_GENL_NAME		"ila"
      9 #define ILA_GENL_VERSION	0x1
     10 
     11 enum {
     12 	ILA_ATTR_UNSPEC,
     13 	ILA_ATTR_LOCATOR,			/* u64 */
     14 	ILA_ATTR_IDENTIFIER,			/* u64 */
     15 	ILA_ATTR_LOCATOR_MATCH,			/* u64 */
     16 	ILA_ATTR_IFINDEX,			/* s32 */
     17 	ILA_ATTR_DIR,				/* u32 */
     18 	ILA_ATTR_PAD,
     19 	ILA_ATTR_CSUM_MODE,			/* u8 */
     20 
     21 	__ILA_ATTR_MAX,
     22 };
     23 
     24 #define ILA_ATTR_MAX		(__ILA_ATTR_MAX - 1)
     25 
     26 enum {
     27 	ILA_CMD_UNSPEC,
     28 	ILA_CMD_ADD,
     29 	ILA_CMD_DEL,
     30 	ILA_CMD_GET,
     31 
     32 	__ILA_CMD_MAX,
     33 };
     34 
     35 #define ILA_CMD_MAX	(__ILA_CMD_MAX - 1)
     36 
     37 #define ILA_DIR_IN	(1 << 0)
     38 #define ILA_DIR_OUT	(1 << 1)
     39 
     40 enum {
     41 	ILA_CSUM_ADJUST_TRANSPORT,
     42 	ILA_CSUM_NEUTRAL_MAP,
     43 	ILA_CSUM_NO_ACTION,
     44 };
     45 
     46 #endif /* _LINUX_ILA_H */
     47