]> git.baikalelectronics.ru Git - kernel.git/commit
ila: Add a hook type for LWT routes
authorTom Herbert <tom@quantonium.net>
Sun, 5 Nov 2017 23:58:25 +0000 (15:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 02:20:49 +0000 (11:20 +0900)
commit969ee1841513c0cbacd35ef3d228367aadb67600
treef8aab6ffbf33af043fbab1c115f8f51da7663dac
parenta284d70e0a692fba31745833ef3da69ecff9e61d
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>
include/uapi/linux/ila.h
net/ipv6/ila/ila_lwt.c