summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ila/ila.h
diff options
context:
space:
mode:
authorTom Herbert <tom@quantonium.net>2017-11-06 00:58:24 +0100
committerDavid S. Miller <davem@davemloft.net>2017-11-08 03:20:48 +0100
commit70d5aef48a421a68bd9d1bf8f8267af406681580 (patch)
tree714dee52f5339551dbbb6bb7b77374e25c1ef84d /net/ipv6/ila/ila.h
parentila: add checksum neutral map auto (diff)
downloadlinux-70d5aef48a421a68bd9d1bf8f8267af406681580.tar.xz
linux-70d5aef48a421a68bd9d1bf8f8267af406681580.zip
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 'net/ipv6/ila/ila.h')
-rw-r--r--net/ipv6/ila/ila.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/net/ipv6/ila/ila.h b/net/ipv6/ila/ila.h
index e0170f62bc39..3c7a11b62334 100644
--- a/net/ipv6/ila/ila.h
+++ b/net/ipv6/ila/ila.h
@@ -55,17 +55,6 @@ struct ila_identifier {
};
};
-enum {
- ILA_ATYPE_IID = 0,
- ILA_ATYPE_LUID,
- ILA_ATYPE_VIRT_V4,
- ILA_ATYPE_VIRT_UNI_V6,
- ILA_ATYPE_VIRT_MULTI_V6,
- ILA_ATYPE_RSVD_1,
- ILA_ATYPE_RSVD_2,
- ILA_ATYPE_RSVD_3,
-};
-
#define CSUM_NEUTRAL_FLAG htonl(0x10000000)
struct ila_addr {
@@ -93,6 +82,7 @@ struct ila_params {
struct ila_locator locator_match;
__wsum csum_diff;
u8 csum_mode;
+ u8 ident_type;
};
static inline __wsum compute_csum_diff8(const __be32 *from, const __be32 *to)