diff options
author | Richard Alpe <richard.alpe@ericsson.com> | 2016-08-18 04:33:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-19 02:36:07 -0400 |
commit | b34040227be7da760cc72ef3c807e0985e7f0f16 (patch) | |
tree | 19043619527b69595286b449bc132201de8ac08d /net/tipc/netlink.c | |
parent | 36a6503feddadbbad415fb3891e80f94c10a9b21 (diff) |
tipc: add peer removal functionality
Add TIPC_NL_PEER_REMOVE netlink command. This command can remove
an offline peer node from the internal data structures.
This will be supported by the tipc user space tool in iproute2.
Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/netlink.c')
-rw-r--r-- | net/tipc/netlink.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/tipc/netlink.c b/net/tipc/netlink.c index a84daec0afe9..2718de667828 100644 --- a/net/tipc/netlink.c +++ b/net/tipc/netlink.c | |||
@@ -238,6 +238,11 @@ static const struct genl_ops tipc_genl_v2_ops[] = { | |||
238 | .dumpit = tipc_nl_node_dump_monitor_peer, | 238 | .dumpit = tipc_nl_node_dump_monitor_peer, |
239 | .policy = tipc_nl_policy, | 239 | .policy = tipc_nl_policy, |
240 | }, | 240 | }, |
241 | { | ||
242 | .cmd = TIPC_NL_PEER_REMOVE, | ||
243 | .doit = tipc_nl_peer_rm, | ||
244 | .policy = tipc_nl_policy, | ||
245 | } | ||
241 | }; | 246 | }; |
242 | 247 | ||
243 | int tipc_nlmsg_parse(const struct nlmsghdr *nlh, struct nlattr ***attr) | 248 | int tipc_nlmsg_parse(const struct nlmsghdr *nlh, struct nlattr ***attr) |