diff options
author | Tom Herbert <tom@herbertland.com> | 2018-06-28 00:39:02 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-29 05:32:55 +0300 |
commit | b6e71bdebb12cb79f931db358066a33f5f526b6a (patch) | |
tree | f892ef466f2cbdb45f5a5ef8d53dfcd24b4d322d /net/ipv6/ila/ila_main.c | |
parent | ad68147ef2878cad0cb9aba2a682c4bb8832cca7 (diff) | |
download | linux-b6e71bdebb12cb79f931db358066a33f5f526b6a.tar.xz |
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.c | 6 |
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, |