aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/node.h
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2012-11-16 00:51:30 -0500
committerPaul Gortmaker <paul.gortmaker@windriver.com>2012-11-22 07:50:51 -0500
commit389dd9bcf65e10929cedfeb79c49bd02069b8899 (patch)
tree13941aa4eb7ce60d2cf07aab234dcfd2d29f7a07 /net/tipc/node.h
parent818f4da526656a100c637b098be06316fd4624e4 (diff)
tipc: rename supported flag to recv_permitted
Rename the "supported" flag in bclink structure to "recv_permitted" to better reflect what it is used for. When this flag is set for a given node, we are permitted to receive and acknowledge broadcast messages from that node. Convert it to a bool at the same time, since it is not used to store any numerical values. Signed-off-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/node.h')
-rw-r--r--net/tipc/node.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/node.h b/net/tipc/node.h
index 3ac905f36b03..3c189b35b102 100644
--- a/net/tipc/node.h
+++ b/net/tipc/node.h
@@ -67,7 +67,6 @@
67 * @permit_changeover: non-zero if node has redundant links to this system 67 * @permit_changeover: non-zero if node has redundant links to this system
68 * @signature: node instance identifier 68 * @signature: node instance identifier
69 * @bclink: broadcast-related info 69 * @bclink: broadcast-related info
70 * @supported: non-zero if node supports TIPC b'cast capability
71 * @acked: sequence # of last outbound b'cast message acknowledged by node 70 * @acked: sequence # of last outbound b'cast message acknowledged by node
72 * @last_in: sequence # of last in-sequence b'cast message received from node 71 * @last_in: sequence # of last in-sequence b'cast message received from node
73 * @last_sent: sequence # of last b'cast message sent by node 72 * @last_sent: sequence # of last b'cast message sent by node
@@ -76,6 +75,7 @@
76 * @deferred_head: oldest OOS b'cast message received from node 75 * @deferred_head: oldest OOS b'cast message received from node
77 * @deferred_tail: newest OOS b'cast message received from node 76 * @deferred_tail: newest OOS b'cast message received from node
78 * @defragm: list of partially reassembled b'cast message fragments from node 77 * @defragm: list of partially reassembled b'cast message fragments from node
78 * @recv_permitted: true if node is allowed to receive b'cast messages
79 */ 79 */
80struct tipc_node { 80struct tipc_node {
81 u32 addr; 81 u32 addr;
@@ -91,7 +91,6 @@ struct tipc_node {
91 int permit_changeover; 91 int permit_changeover;
92 u32 signature; 92 u32 signature;
93 struct { 93 struct {
94 u8 supported;
95 u32 acked; 94 u32 acked;
96 u32 last_in; 95 u32 last_in;
97 u32 last_sent; 96 u32 last_sent;
@@ -100,6 +99,7 @@ struct tipc_node {
100 struct sk_buff *deferred_head; 99 struct sk_buff *deferred_head;
101 struct sk_buff *deferred_tail; 100 struct sk_buff *deferred_tail;
102 struct sk_buff *defragm; 101 struct sk_buff *defragm;
102 bool recv_permitted;
103 } bclink; 103 } bclink;
104}; 104};
105 105