summaryrefslogtreecommitdiff
path: root/include/uapi/linux/ila.h
diff options
context:
space:
mode:
authorTom Herbert <tom@quantonium.net>2017-11-06 02:58:24 +0300
committerDavid S. Miller <davem@davemloft.net>2017-11-08 05:20:48 +0300
commit70d5aef48a421a68bd9d1bf8f8267af406681580 (patch)
tree714dee52f5339551dbbb6bb7b77374e25c1ef84d /include/uapi/linux/ila.h
parent84287bb3285634b60c55c00a1d5ed843b44fde92 (diff)
downloadlinux-70d5aef48a421a68bd9d1bf8f8267af406681580.tar.xz
ila: allow configuration of identifier type
Allow identifier to be explicitly configured for a mapping. This can either be one of the identifier types specified in the ILA draft or a value of ILA_ATYPE_USE_FORMAT which means the identifier type is inferred from the identifier type field. If a value other than ILA_ATYPE_USE_FORMAT is set for a mapping then it is assumed that the identifier type field is not present in an identifier. Signed-off-by: Tom Herbert <tom@quantonium.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/ila.h')
-rw-r--r--include/uapi/linux/ila.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/uapi/linux/ila.h b/include/uapi/linux/ila.h
index 0744881dcef3..8353c78a7781 100644
--- a/include/uapi/linux/ila.h
+++ b/include/uapi/linux/ila.h
@@ -17,6 +17,7 @@ enum {
ILA_ATTR_DIR, /* u32 */
ILA_ATTR_PAD,
ILA_ATTR_CSUM_MODE, /* u8 */
+ ILA_ATTR_IDENT_TYPE, /* u8 */
__ILA_ATTR_MAX,
};
@@ -44,4 +45,16 @@ enum {
ILA_CSUM_NEUTRAL_MAP_AUTO,
};
+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 */
+};
#endif /* _UAPI_LINUX_ILA_H */