mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 22:24:09 +08:00
90bfe662db
Support checksum neutral ILA as described in the ILA draft. The low order 16 bits of the identifier are used to contain the checksum adjustment value. The csum-mode parameter is added to described checksum processing. There are three values: - adjust transport checksum (previous behavior) - do checksum neutral mapping - do nothing On output the csum-mode in the ila_params is checked and acted on. If mode is checksum neutral mapping then to mapping and set C-bit. On input, C-bit is checked. If it is set checksum-netural mapping is done (regardless of csum-mode in ila params) and C-bit will be cleared. If it is not set then action in csum-mode is taken. Signed-off-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
46 lines
775 B
C
46 lines
775 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_PAD,
|
|
ILA_ATTR_CSUM_MODE, /* u8 */
|
|
|
|
__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)
|
|
|
|
enum {
|
|
ILA_CSUM_ADJUST_TRANSPORT,
|
|
ILA_CSUM_NEUTRAL_MAP,
|
|
ILA_CSUM_NO_ACTION,
|
|
};
|
|
|
|
#endif /* _UAPI_LINUX_ILA_H */
|