diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-12-29 20:58:42 -0500 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-12-29 21:53:30 -0500 |
commit | a18c4bc3ea3c23f658655b1eee4f62cb71d51efd (patch) | |
tree | 573ab87dd9826f1956bb3a17e481842284ad8321 /net/tipc/discover.c | |
parent | 7f9ab6ac2e79b9658eba7c8e3ad8a4392d308057 (diff) |
tipc: rename struct link* to struct tipc_link*
This converts the following:
struct link -> struct tipc_link
struct link_req -> struct tipc_link_req
struct link_name -> struct tipc_link_name
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/discover.c')
-rw-r--r-- | net/tipc/discover.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/net/tipc/discover.c b/net/tipc/discover.c index 420e0329036b..a00e5f811569 100644 --- a/net/tipc/discover.c +++ b/net/tipc/discover.c | |||
@@ -45,7 +45,7 @@ | |||
45 | 45 | ||
46 | 46 | ||
47 | /** | 47 | /** |
48 | * struct link_req - information about an ongoing link setup request | 48 | * struct tipc_link_req - information about an ongoing link setup request |
49 | * @bearer: bearer issuing requests | 49 | * @bearer: bearer issuing requests |
50 | * @dest: destination address for request messages | 50 | * @dest: destination address for request messages |
51 | * @domain: network domain to which links can be established | 51 | * @domain: network domain to which links can be established |
@@ -54,7 +54,7 @@ | |||
54 | * @timer: timer governing period between requests | 54 | * @timer: timer governing period between requests |
55 | * @timer_intv: current interval between requests (in ms) | 55 | * @timer_intv: current interval between requests (in ms) |
56 | */ | 56 | */ |
57 | struct link_req { | 57 | struct tipc_link_req { |
58 | struct tipc_bearer *bearer; | 58 | struct tipc_bearer *bearer; |
59 | struct tipc_media_addr dest; | 59 | struct tipc_media_addr dest; |
60 | u32 domain; | 60 | u32 domain; |
@@ -120,7 +120,7 @@ static void disc_dupl_alert(struct tipc_bearer *b_ptr, u32 node_addr, | |||
120 | void tipc_disc_recv_msg(struct sk_buff *buf, struct tipc_bearer *b_ptr) | 120 | void tipc_disc_recv_msg(struct sk_buff *buf, struct tipc_bearer *b_ptr) |
121 | { | 121 | { |
122 | struct tipc_node *n_ptr; | 122 | struct tipc_node *n_ptr; |
123 | struct link *link; | 123 | struct tipc_link *link; |
124 | struct tipc_media_addr media_addr, *addr; | 124 | struct tipc_media_addr media_addr, *addr; |
125 | struct sk_buff *rbuf; | 125 | struct sk_buff *rbuf; |
126 | struct tipc_msg *msg = buf_msg(buf); | 126 | struct tipc_msg *msg = buf_msg(buf); |
@@ -218,7 +218,7 @@ void tipc_disc_recv_msg(struct sk_buff *buf, struct tipc_bearer *b_ptr) | |||
218 | * and is either not currently searching or is searching at a slow rate | 218 | * and is either not currently searching or is searching at a slow rate |
219 | */ | 219 | */ |
220 | 220 | ||
221 | static void disc_update(struct link_req *req) | 221 | static void disc_update(struct tipc_link_req *req) |
222 | { | 222 | { |
223 | if (!req->num_nodes) { | 223 | if (!req->num_nodes) { |
224 | if ((req->timer_intv == TIPC_LINK_REQ_INACTIVE) || | 224 | if ((req->timer_intv == TIPC_LINK_REQ_INACTIVE) || |
@@ -234,7 +234,7 @@ static void disc_update(struct link_req *req) | |||
234 | * @req: ptr to link request structure | 234 | * @req: ptr to link request structure |
235 | */ | 235 | */ |
236 | 236 | ||
237 | void tipc_disc_add_dest(struct link_req *req) | 237 | void tipc_disc_add_dest(struct tipc_link_req *req) |
238 | { | 238 | { |
239 | req->num_nodes++; | 239 | req->num_nodes++; |
240 | } | 240 | } |
@@ -244,7 +244,7 @@ void tipc_disc_add_dest(struct link_req *req) | |||
244 | * @req: ptr to link request structure | 244 | * @req: ptr to link request structure |
245 | */ | 245 | */ |
246 | 246 | ||
247 | void tipc_disc_remove_dest(struct link_req *req) | 247 | void tipc_disc_remove_dest(struct tipc_link_req *req) |
248 | { | 248 | { |
249 | req->num_nodes--; | 249 | req->num_nodes--; |
250 | disc_update(req); | 250 | disc_update(req); |
@@ -255,7 +255,7 @@ void tipc_disc_remove_dest(struct link_req *req) | |||
255 | * @req: ptr to link request structure | 255 | * @req: ptr to link request structure |
256 | */ | 256 | */ |
257 | 257 | ||
258 | static void disc_send_msg(struct link_req *req) | 258 | static void disc_send_msg(struct tipc_link_req *req) |
259 | { | 259 | { |
260 | if (!req->bearer->blocked) | 260 | if (!req->bearer->blocked) |
261 | tipc_bearer_send(req->bearer, req->buf, &req->dest); | 261 | tipc_bearer_send(req->bearer, req->buf, &req->dest); |
@@ -268,7 +268,7 @@ static void disc_send_msg(struct link_req *req) | |||
268 | * Called whenever a link setup request timer associated with a bearer expires. | 268 | * Called whenever a link setup request timer associated with a bearer expires. |
269 | */ | 269 | */ |
270 | 270 | ||
271 | static void disc_timeout(struct link_req *req) | 271 | static void disc_timeout(struct tipc_link_req *req) |
272 | { | 272 | { |
273 | int max_delay; | 273 | int max_delay; |
274 | 274 | ||
@@ -316,7 +316,7 @@ exit: | |||
316 | int tipc_disc_create(struct tipc_bearer *b_ptr, | 316 | int tipc_disc_create(struct tipc_bearer *b_ptr, |
317 | struct tipc_media_addr *dest, u32 dest_domain) | 317 | struct tipc_media_addr *dest, u32 dest_domain) |
318 | { | 318 | { |
319 | struct link_req *req; | 319 | struct tipc_link_req *req; |
320 | 320 | ||
321 | req = kmalloc(sizeof(*req), GFP_ATOMIC); | 321 | req = kmalloc(sizeof(*req), GFP_ATOMIC); |
322 | if (!req) | 322 | if (!req) |
@@ -345,7 +345,7 @@ int tipc_disc_create(struct tipc_bearer *b_ptr, | |||
345 | * @req: ptr to link request structure | 345 | * @req: ptr to link request structure |
346 | */ | 346 | */ |
347 | 347 | ||
348 | void tipc_disc_delete(struct link_req *req) | 348 | void tipc_disc_delete(struct tipc_link_req *req) |
349 | { | 349 | { |
350 | k_cancel_timer(&req->timer); | 350 | k_cancel_timer(&req->timer); |
351 | k_term_timer(&req->timer); | 351 | k_term_timer(&req->timer); |