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.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -17,6 +17,7 @@ enum { · 16 unmodified lines | |||
| 17 | ILA_ATTR_DIR, /* u32 */ | 17 | ILA_ATTR_DIR, /* u32 */ |
| 18 | ILA_ATTR_PAD, | 18 | ILA_ATTR_PAD, |
| 19 | ILA_ATTR_CSUM_MODE, /* u8 */ | 19 | ILA_ATTR_CSUM_MODE, /* u8 */ |
| 20 | ILA_ATTR_IDENT_TYPE, /* u8 */ | ||
| 20 | 21 | ||
| 21 | __ILA_ATTR_MAX, | 22 | __ILA_ATTR_MAX, |
| 22 | }; | 23 | }; |
| @@ -44,4 +45,16 @@ enum { · 21 unmodified lines | |||
| 44 | ILA_CSUM_NEUTRAL_MAP_AUTO, | 45 | ILA_CSUM_NEUTRAL_MAP_AUTO, |
| 45 | }; | 46 | }; |
| 46 | 47 | ||
| 48 | enum { | ||
| 49 | ILA_ATYPE_IID = 0, | ||
| 50 | ILA_ATYPE_LUID, | ||
| 51 | ILA_ATYPE_VIRT_V4, | ||
| 52 | ILA_ATYPE_VIRT_UNI_V6, | ||
| 53 | ILA_ATYPE_VIRT_MULTI_V6, | ||
| 54 | ILA_ATYPE_NONLOCAL_ADDR, | ||
| 55 | ILA_ATYPE_RSVD_1, | ||
| 56 | ILA_ATYPE_RSVD_2, | ||
| 57 | |||
| 58 | ILA_ATYPE_USE_FORMAT = 32, /* Get type from type field in identifier */ | ||
| 59 | }; | ||
| 47 | #endif /* _UAPI_LINUX_ILA_H */ | 60 | #endif /* _UAPI_LINUX_ILA_H */ |