summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ila/ila_main.c
diff options
context:
space:
mode:
authorTom Herbert <tom@herbertland.com>2018-06-27 14:39:02 -0700
committerDavid S. Miller <davem@davemloft.net>2018-06-29 11:32:55 +0900
commitb6e71bdebb12cb79f931db358066a33f5f526b6a (patch)
treef892ef466f2cbdb45f5a5ef8d53dfcd24b4d322d /net/ipv6/ila/ila_main.c
parentad68147ef2878cad0cb9aba2a682c4bb8832cca7 (diff)
ila: Flush netlink command to clear xlat table
Add ILA_CMD_FLUSH netlink command to clear the ILA translation table. Signed-off-by: Tom Herbert <tom@quantonium.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ila/ila_main.c')
-rw-r--r--net/ipv6/ila/ila_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ipv6/ila/ila_main.c b/net/ipv6/ila/ila_main.c
index f6ac6b14577e..18fac76b9520 100644
--- a/net/ipv6/ila/ila_main.c
+++ b/net/ipv6/ila/ila_main.c
@@ -27,6 +27,12 @@ static const struct genl_ops ila_nl_ops[] = {
.flags = GENL_ADMIN_PERM,
},
{
+ .cmd = ILA_CMD_FLUSH,
+ .doit = ila_xlat_nl_cmd_flush,
+ .policy = ila_nl_policy,
+ .flags = GENL_ADMIN_PERM,
+ },
+ {
.cmd = ILA_CMD_GET,
.doit = ila_xlat_nl_cmd_get_mapping,
.start = ila_xlat_nl_dump_start,