diff options
author | Richard Alpe <richard.alpe@ericsson.com> | 2014-11-20 04:29:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-21 15:01:31 -0500 |
commit | 3e4b6ab58d614934e7ca99bdf448089695d34ffa (patch) | |
tree | d802397c1372ddba7e63eb784afb13261381d106 /net/tipc/node.h | |
parent | 1e55417d8fc6f6d93b1cc6995b911d48ded2adfb (diff) |
tipc: add node get/dump to new netlink api
Add TIPC_NL_NODE_GET to the new tipc netlink API.
This command can dump the address and node status of all nodes in the
tipc cluster.
Netlink logical layout of returned node/address data:
-> node
-> address
-> up flag
Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@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/node.h')
-rw-r--r-- | net/tipc/node.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/tipc/node.h b/net/tipc/node.h index 04e91458bb29..005fbcef3212 100644 --- a/net/tipc/node.h +++ b/net/tipc/node.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * net/tipc/node.h: Include file for TIPC node management routines | 2 | * net/tipc/node.h: Include file for TIPC node management routines |
3 | * | 3 | * |
4 | * Copyright (c) 2000-2006, Ericsson AB | 4 | * Copyright (c) 2000-2006, 2014, Ericsson AB |
5 | * Copyright (c) 2005, 2010-2014, Wind River Systems | 5 | * Copyright (c) 2005, 2010-2014, Wind River Systems |
6 | * All rights reserved. | 6 | * All rights reserved. |
7 | * | 7 | * |
@@ -145,6 +145,8 @@ void tipc_node_unlock(struct tipc_node *node); | |||
145 | int tipc_node_add_conn(u32 dnode, u32 port, u32 peer_port); | 145 | int tipc_node_add_conn(u32 dnode, u32 port, u32 peer_port); |
146 | void tipc_node_remove_conn(u32 dnode, u32 port); | 146 | void tipc_node_remove_conn(u32 dnode, u32 port); |
147 | 147 | ||
148 | int tipc_nl_node_dump(struct sk_buff *skb, struct netlink_callback *cb); | ||
149 | |||
148 | static inline void tipc_node_lock(struct tipc_node *node) | 150 | static inline void tipc_node_lock(struct tipc_node *node) |
149 | { | 151 | { |
150 | spin_lock_bh(&node->lock); | 152 | spin_lock_bh(&node->lock); |