diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2008-06-04 20:32:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-04 20:32:35 -0400 |
commit | 1265a02108c508b508112cdeac922aad03e0146a (patch) | |
tree | 3a52ee41e6273650bcfb2d3df9c5d17ecd08361a /net/tipc/discover.c | |
parent | a686e6859e976712e28f6af927cd52a6a3bb372a (diff) |
tipc: Minor optimizations to received message processing
This patch enhances TIPC's handler for incoming messages in two
ways:
- the trivial, single-use routine for processing non-sequenced
messages has been merged into the main handler
- the interface that received a message is now identified without
having to access and/or modify the associated sk_buff
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/discover.c')
-rw-r--r-- | net/tipc/discover.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/discover.c b/net/tipc/discover.c index faeaf06d377e..ada213aac4d4 100644 --- a/net/tipc/discover.c +++ b/net/tipc/discover.c | |||
@@ -156,11 +156,11 @@ static void disc_dupl_alert(struct bearer *b_ptr, u32 node_addr, | |||
156 | /** | 156 | /** |
157 | * tipc_disc_recv_msg - handle incoming link setup message (request or response) | 157 | * tipc_disc_recv_msg - handle incoming link setup message (request or response) |
158 | * @buf: buffer containing message | 158 | * @buf: buffer containing message |
159 | * @b_ptr: bearer that message arrived on | ||
159 | */ | 160 | */ |
160 | 161 | ||
161 | void tipc_disc_recv_msg(struct sk_buff *buf) | 162 | void tipc_disc_recv_msg(struct sk_buff *buf, struct bearer *b_ptr) |
162 | { | 163 | { |
163 | struct bearer *b_ptr = (struct bearer *)TIPC_SKB_CB(buf)->handle; | ||
164 | struct link *link; | 164 | struct link *link; |
165 | struct tipc_media_addr media_addr; | 165 | struct tipc_media_addr media_addr; |
166 | struct tipc_msg *msg = buf_msg(buf); | 166 | struct tipc_msg *msg = buf_msg(buf); |