diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2010-05-11 10:30:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-13 02:02:25 -0400 |
commit | c68ca7b72017f8f52e7aed0d2a6ecfaede133b6b (patch) | |
tree | 37e428def9c1720122282efa23d18834f8060795 /net/tipc/port.c | |
parent | 01fee256a675f6492fc6945bbb9b59640d8705d4 (diff) |
tipc: add tipc_ prefix to fcns targeted for un-inlining
These functions have enough code in them such that they
seem like sensible targets for un-inlining. Prior to doing
that, this adds the tipc_ prefix to the functions, so that
in the event of a panic dump or similar, the subsystem from
which the functions come from is immediately clear.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/port.c')
-rw-r--r-- | net/tipc/port.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/net/tipc/port.c b/net/tipc/port.c index 7641db667e0b..0737680e9266 100644 --- a/net/tipc/port.c +++ b/net/tipc/port.c | |||
@@ -116,7 +116,7 @@ int tipc_multicast(u32 ref, struct tipc_name_seq const *seq, u32 domain, | |||
116 | msg_set_namelower(hdr, seq->lower); | 116 | msg_set_namelower(hdr, seq->lower); |
117 | msg_set_nameupper(hdr, seq->upper); | 117 | msg_set_nameupper(hdr, seq->upper); |
118 | msg_set_hdr_sz(hdr, MCAST_H_SIZE); | 118 | msg_set_hdr_sz(hdr, MCAST_H_SIZE); |
119 | res = msg_build(hdr, msg_sect, num_sect, MAX_MSG_SIZE, | 119 | res = tipc_msg_build(hdr, msg_sect, num_sect, MAX_MSG_SIZE, |
120 | !oport->user_port, &buf); | 120 | !oport->user_port, &buf); |
121 | if (unlikely(!buf)) | 121 | if (unlikely(!buf)) |
122 | return res; | 122 | return res; |
@@ -241,7 +241,7 @@ struct tipc_port *tipc_createport_raw(void *usr_handle, | |||
241 | p_ptr->publ.max_pkt = MAX_PKT_DEFAULT; | 241 | p_ptr->publ.max_pkt = MAX_PKT_DEFAULT; |
242 | p_ptr->publ.ref = ref; | 242 | p_ptr->publ.ref = ref; |
243 | msg = &p_ptr->publ.phdr; | 243 | msg = &p_ptr->publ.phdr; |
244 | msg_init(msg, importance, TIPC_NAMED_MSG, LONG_H_SIZE, 0); | 244 | tipc_msg_init(msg, importance, TIPC_NAMED_MSG, LONG_H_SIZE, 0); |
245 | msg_set_origport(msg, ref); | 245 | msg_set_origport(msg, ref); |
246 | p_ptr->last_in_seqno = 41; | 246 | p_ptr->last_in_seqno = 41; |
247 | p_ptr->sent = 1; | 247 | p_ptr->sent = 1; |
@@ -395,7 +395,7 @@ static struct sk_buff *port_build_proto_msg(u32 destport, u32 destnode, | |||
395 | buf = buf_acquire(LONG_H_SIZE); | 395 | buf = buf_acquire(LONG_H_SIZE); |
396 | if (buf) { | 396 | if (buf) { |
397 | msg = buf_msg(buf); | 397 | msg = buf_msg(buf); |
398 | msg_init(msg, usr, type, LONG_H_SIZE, destnode); | 398 | tipc_msg_init(msg, usr, type, LONG_H_SIZE, destnode); |
399 | msg_set_errcode(msg, err); | 399 | msg_set_errcode(msg, err); |
400 | msg_set_destport(msg, destport); | 400 | msg_set_destport(msg, destport); |
401 | msg_set_origport(msg, origport); | 401 | msg_set_origport(msg, origport); |
@@ -439,7 +439,7 @@ int tipc_reject_msg(struct sk_buff *buf, u32 err) | |||
439 | return data_sz; | 439 | return data_sz; |
440 | } | 440 | } |
441 | rmsg = buf_msg(rbuf); | 441 | rmsg = buf_msg(rbuf); |
442 | msg_init(rmsg, imp, msg_type(msg), hdr_sz, msg_orignode(msg)); | 442 | tipc_msg_init(rmsg, imp, msg_type(msg), hdr_sz, msg_orignode(msg)); |
443 | msg_set_errcode(rmsg, err); | 443 | msg_set_errcode(rmsg, err); |
444 | msg_set_destport(rmsg, msg_origport(msg)); | 444 | msg_set_destport(rmsg, msg_origport(msg)); |
445 | msg_set_origport(rmsg, msg_destport(msg)); | 445 | msg_set_origport(rmsg, msg_destport(msg)); |
@@ -480,7 +480,7 @@ int tipc_port_reject_sections(struct port *p_ptr, struct tipc_msg *hdr, | |||
480 | struct sk_buff *buf; | 480 | struct sk_buff *buf; |
481 | int res; | 481 | int res; |
482 | 482 | ||
483 | res = msg_build(hdr, msg_sect, num_sect, MAX_MSG_SIZE, | 483 | res = tipc_msg_build(hdr, msg_sect, num_sect, MAX_MSG_SIZE, |
484 | !p_ptr->user_port, &buf); | 484 | !p_ptr->user_port, &buf); |
485 | if (!buf) | 485 | if (!buf) |
486 | return res; | 486 | return res; |
@@ -1343,7 +1343,7 @@ int tipc_port_recv_sections(struct port *sender, unsigned int num_sect, | |||
1343 | struct sk_buff *buf; | 1343 | struct sk_buff *buf; |
1344 | int res; | 1344 | int res; |
1345 | 1345 | ||
1346 | res = msg_build(&sender->publ.phdr, msg_sect, num_sect, | 1346 | res = tipc_msg_build(&sender->publ.phdr, msg_sect, num_sect, |
1347 | MAX_MSG_SIZE, !sender->user_port, &buf); | 1347 | MAX_MSG_SIZE, !sender->user_port, &buf); |
1348 | if (likely(buf)) | 1348 | if (likely(buf)) |
1349 | tipc_port_recv_msg(buf); | 1349 | tipc_port_recv_msg(buf); |
@@ -1383,7 +1383,7 @@ int tipc_send(u32 ref, unsigned int num_sect, struct iovec const *msg_sect) | |||
1383 | if (port_unreliable(p_ptr)) { | 1383 | if (port_unreliable(p_ptr)) { |
1384 | p_ptr->publ.congested = 0; | 1384 | p_ptr->publ.congested = 0; |
1385 | /* Just calculate msg length and return */ | 1385 | /* Just calculate msg length and return */ |
1386 | return msg_calc_data_size(msg_sect, num_sect); | 1386 | return tipc_msg_calc_data_size(msg_sect, num_sect); |
1387 | } | 1387 | } |
1388 | return -ELINKCONG; | 1388 | return -ELINKCONG; |
1389 | } | 1389 | } |
@@ -1466,7 +1466,7 @@ int tipc_forward2name(u32 ref, | |||
1466 | msg_set_hdr_sz(msg, LONG_H_SIZE); | 1466 | msg_set_hdr_sz(msg, LONG_H_SIZE); |
1467 | msg_set_nametype(msg, name->type); | 1467 | msg_set_nametype(msg, name->type); |
1468 | msg_set_nameinst(msg, name->instance); | 1468 | msg_set_nameinst(msg, name->instance); |
1469 | msg_set_lookup_scope(msg, addr_scope(domain)); | 1469 | msg_set_lookup_scope(msg, tipc_addr_scope(domain)); |
1470 | if (importance <= TIPC_CRITICAL_IMPORTANCE) | 1470 | if (importance <= TIPC_CRITICAL_IMPORTANCE) |
1471 | msg_set_importance(msg,importance); | 1471 | msg_set_importance(msg,importance); |
1472 | destport = tipc_nametbl_translate(name->type, name->instance, &destnode); | 1472 | destport = tipc_nametbl_translate(name->type, name->instance, &destnode); |
@@ -1483,7 +1483,7 @@ int tipc_forward2name(u32 ref, | |||
1483 | return res; | 1483 | return res; |
1484 | if (port_unreliable(p_ptr)) { | 1484 | if (port_unreliable(p_ptr)) { |
1485 | /* Just calculate msg length and return */ | 1485 | /* Just calculate msg length and return */ |
1486 | return msg_calc_data_size(msg_sect, num_sect); | 1486 | return tipc_msg_calc_data_size(msg_sect, num_sect); |
1487 | } | 1487 | } |
1488 | return -ELINKCONG; | 1488 | return -ELINKCONG; |
1489 | } | 1489 | } |
@@ -1539,7 +1539,7 @@ int tipc_forward_buf2name(u32 ref, | |||
1539 | msg_set_origport(msg, orig->ref); | 1539 | msg_set_origport(msg, orig->ref); |
1540 | msg_set_nametype(msg, name->type); | 1540 | msg_set_nametype(msg, name->type); |
1541 | msg_set_nameinst(msg, name->instance); | 1541 | msg_set_nameinst(msg, name->instance); |
1542 | msg_set_lookup_scope(msg, addr_scope(domain)); | 1542 | msg_set_lookup_scope(msg, tipc_addr_scope(domain)); |
1543 | msg_set_hdr_sz(msg, LONG_H_SIZE); | 1543 | msg_set_hdr_sz(msg, LONG_H_SIZE); |
1544 | msg_set_size(msg, LONG_H_SIZE + dsz); | 1544 | msg_set_size(msg, LONG_H_SIZE + dsz); |
1545 | destport = tipc_nametbl_translate(name->type, name->instance, &destnode); | 1545 | destport = tipc_nametbl_translate(name->type, name->instance, &destnode); |
@@ -1619,7 +1619,7 @@ int tipc_forward2port(u32 ref, | |||
1619 | return res; | 1619 | return res; |
1620 | if (port_unreliable(p_ptr)) { | 1620 | if (port_unreliable(p_ptr)) { |
1621 | /* Just calculate msg length and return */ | 1621 | /* Just calculate msg length and return */ |
1622 | return msg_calc_data_size(msg_sect, num_sect); | 1622 | return tipc_msg_calc_data_size(msg_sect, num_sect); |
1623 | } | 1623 | } |
1624 | return -ELINKCONG; | 1624 | return -ELINKCONG; |
1625 | } | 1625 | } |