diff options
author | Tom Herbert <tom@quantonium.net> | 2017-11-05 15:58:25 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-08 11:20:49 +0900 |
commit | fddb231ebe647749782a9ebf11106a81f7168ba7 (patch) | |
tree | f8aab6ffbf33af043fbab1c115f8f51da7663dac /include/uapi | |
parent | 70d5aef48a421a68bd9d1bf8f8267af406681580 (diff) | |
download | linux-fddb231ebe647749782a9ebf11106a81f7168ba7.tar.bz2 |
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')
-rw-r--r-- | include/uapi/linux/ila.h | 7 |
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 */ |