diff options
author | Ying Xue <ying.xue@windriver.com> | 2014-11-25 22:41:53 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-26 12:30:17 -0500 |
commit | bc6fecd4098df2d21b056486e5b418c84be95032 (patch) | |
tree | 4b37da9bbd5fda66bba92558de5e6c9dfe97b7f6 /net/tipc/node.h | |
parent | 58dc55f25631178ee74cd27185956a8f7dcb3e32 (diff) |
tipc: use generic SKB list APIs to manage deferred queue of link
Use standard SKB list APIs associated with struct sk_buff_head to
manage link's deferred queue, simplifying relevant code.
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/node.h')
-rw-r--r-- | net/tipc/node.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/tipc/node.h b/net/tipc/node.h index f1994511f033..cbe0e950f1cc 100644 --- a/net/tipc/node.h +++ b/net/tipc/node.h | |||
@@ -71,9 +71,7 @@ enum { | |||
71 | * @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 |
72 | * @last_sent: sequence # of last b'cast message sent by node | 72 | * @last_sent: sequence # of last b'cast message sent by node |
73 | * @oos_state: state tracker for handling OOS b'cast messages | 73 | * @oos_state: state tracker for handling OOS b'cast messages |
74 | * @deferred_size: number of OOS b'cast messages in deferred queue | 74 | * @deferred_queue: deferred queue saved OOS b'cast message received from node |
75 | * @deferred_head: oldest OOS b'cast message received from node | ||
76 | * @deferred_tail: newest OOS b'cast message received from node | ||
77 | * @reasm_buf: broadcast reassembly queue head from node | 75 | * @reasm_buf: broadcast reassembly queue head from node |
78 | * @recv_permitted: true if node is allowed to receive b'cast messages | 76 | * @recv_permitted: true if node is allowed to receive b'cast messages |
79 | */ | 77 | */ |
@@ -83,8 +81,7 @@ struct tipc_node_bclink { | |||
83 | u32 last_sent; | 81 | u32 last_sent; |
84 | u32 oos_state; | 82 | u32 oos_state; |
85 | u32 deferred_size; | 83 | u32 deferred_size; |
86 | struct sk_buff *deferred_head; | 84 | struct sk_buff_head deferred_queue; |
87 | struct sk_buff *deferred_tail; | ||
88 | struct sk_buff *reasm_buf; | 85 | struct sk_buff *reasm_buf; |
89 | bool recv_permitted; | 86 | bool recv_permitted; |
90 | }; | 87 | }; |