aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ila/ila_common.c
diff options
context:
space:
mode:
authorTom Herbert <tom@herbertland.com>2015-12-15 15:41:38 -0800
committerDavid S. Miller <davem@davemloft.net>2015-12-15 23:25:20 -0500
commit7f00feaf107645d95a6d87e99b4d141ac0a08efd (patch)
tree207ff2184419083aa1a70fc37ba8a5ce54135ae9 /net/ipv6/ila/ila_common.c
parentnetlink: add a start callback for starting a netlink dump (diff)
downloadlinux-dev-7f00feaf107645d95a6d87e99b4d141ac0a08efd.tar.xz
linux-dev-7f00feaf107645d95a6d87e99b4d141ac0a08efd.zip
ila: Add generic ILA translation facility
This patch implements an ILA tanslation table. This table can be configured with identifier to locator mappings, and can be be queried to resolve a mapping. Queries can be parameterized based on interface, direction (incoming or outoing), and matching locator. The table is implemented using rhashtable and is configured via netlink (through "ip ila .." in iproute). The table may be used as alternative means to do do ILA tanslations other than the lw tunnels Signed-off-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ila/ila_common.c')
-rw-r--r--net/ipv6/ila/ila_common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/ipv6/ila/ila_common.c b/net/ipv6/ila/ila_common.c
index 64e1904991ac..32dc9aab7297 100644
--- a/net/ipv6/ila/ila_common.c
+++ b/net/ipv6/ila/ila_common.c
@@ -80,12 +80,20 @@ static int __init ila_init(void)
if (ret)
goto fail_lwt;
+ ret = ila_xlat_init();
+ if (ret)
+ goto fail_xlat;
+
+ return 0;
+fail_xlat:
+ ila_lwt_fini();
fail_lwt:
return ret;
}
static void __exit ila_fini(void)
{
+ ila_xlat_fini();
ila_lwt_fini();
}