summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/ila.h
diff options
context:
space:
mode:
authorTom Herbert2017-11-06 00:58:25 +0100
committerDavid S. Miller2017-11-08 03:20:49 +0100
commitfddb231ebe647749782a9ebf11106a81f7168ba7 (patch)
treef8aab6ffbf33af043fbab1c115f8f51da7663dac /include/uapi/linux/ila.h
parentila: allow configuration of identifier type (diff)
downloadkernel-qcow2-linux-fddb231ebe647749782a9ebf11106a81f7168ba7.tar.gz
kernel-qcow2-linux-fddb231ebe647749782a9ebf11106a81f7168ba7.tar.xz
kernel-qcow2-linux-fddb231ebe647749782a9ebf11106a81f7168ba7.zip
ila: Add a hook type for LWT routes
In LWT tunnels both an input and output route method is defined. If both of these are executed in the same path then double translation happens and the effect is not correct. This patch adds a new attribute that indicates the hook type. Two values are defined for route output and route output. ILA translation is only done for the one that is set. The default is to enable ILA on route output. 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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/ila.h b/include/uapi/linux/ila.h
index 8353c78a7781..483b77af4eb8 100644
--- a/include/uapi/linux/ila.h
+++ b/include/uapi/linux/ila.h
@@ -18,6 +18,7 @@ enum {
ILA_ATTR_PAD,
ILA_ATTR_CSUM_MODE, /* u8 */
ILA_ATTR_IDENT_TYPE, /* u8 */
+ ILA_ATTR_HOOK_TYPE, /* u8 */
__ILA_ATTR_MAX,
};
@@ -57,4 +58,10 @@ enum {
ILA_ATYPE_USE_FORMAT = 32, /* Get type from type field in identifier */
};
+
+enum {
+ ILA_HOOK_ROUTE_OUTPUT,
+ ILA_HOOK_ROUTE_INPUT,
+};
+
#endif /* _UAPI_LINUX_ILA_H */