diff options
author | Jon Paul Maloy <jon.maloy@ericsson.com> | 2014-07-16 20:41:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-17 00:38:19 -0400 |
commit | 9fbfb8b120bd4fe89cd70d6c8841e6e1cfab2609 (patch) | |
tree | 7e6c357f2d40a854df8ff8ca4825b5eb5bfaec3f /net/tipc/socket.c | |
parent | c4116e10579c5bbbfc3cd2ad0324ee0d8691e531 (diff) |
tipc: rename temporarily named functions
After the previous commit, we can now give the functions with temporary
names, such as tipc_link_xmit2(), tipc_msg_build2() etc., their proper
names.
There are no functional changes in this commit.
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/socket.c')
-rw-r--r-- | net/tipc/socket.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index b28eea50c7fc..5ad42f6137d8 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c | |||
@@ -131,7 +131,7 @@ static void reject_rx_queue(struct sock *sk) | |||
131 | 131 | ||
132 | while ((buf = __skb_dequeue(&sk->sk_receive_queue))) { | 132 | while ((buf = __skb_dequeue(&sk->sk_receive_queue))) { |
133 | if (tipc_msg_reverse(buf, &dnode, TIPC_ERR_NO_PORT)) | 133 | if (tipc_msg_reverse(buf, &dnode, TIPC_ERR_NO_PORT)) |
134 | tipc_link_xmit2(buf, dnode, 0); | 134 | tipc_link_xmit(buf, dnode, 0); |
135 | } | 135 | } |
136 | } | 136 | } |
137 | 137 | ||
@@ -341,7 +341,7 @@ static int tipc_release(struct socket *sock) | |||
341 | tipc_port_disconnect(port->ref); | 341 | tipc_port_disconnect(port->ref); |
342 | } | 342 | } |
343 | if (tipc_msg_reverse(buf, &dnode, TIPC_ERR_NO_PORT)) | 343 | if (tipc_msg_reverse(buf, &dnode, TIPC_ERR_NO_PORT)) |
344 | tipc_link_xmit2(buf, dnode, 0); | 344 | tipc_link_xmit(buf, dnode, 0); |
345 | } | 345 | } |
346 | } | 346 | } |
347 | 347 | ||
@@ -566,7 +566,7 @@ static int tipc_sendmcast(struct socket *sock, struct tipc_name_seq *seq, | |||
566 | 566 | ||
567 | new_mtu: | 567 | new_mtu: |
568 | mtu = tipc_bclink_get_mtu(); | 568 | mtu = tipc_bclink_get_mtu(); |
569 | rc = tipc_msg_build2(mhdr, iov, 0, dsz, mtu, &buf); | 569 | rc = tipc_msg_build(mhdr, iov, 0, dsz, mtu, &buf); |
570 | if (unlikely(rc < 0)) | 570 | if (unlikely(rc < 0)) |
571 | return rc; | 571 | return rc; |
572 | 572 | ||
@@ -821,12 +821,12 @@ static int tipc_sendmsg(struct kiocb *iocb, struct socket *sock, | |||
821 | 821 | ||
822 | new_mtu: | 822 | new_mtu: |
823 | mtu = tipc_node_get_mtu(dnode, tsk->port.ref); | 823 | mtu = tipc_node_get_mtu(dnode, tsk->port.ref); |
824 | rc = tipc_msg_build2(mhdr, iov, 0, dsz, mtu, &buf); | 824 | rc = tipc_msg_build(mhdr, iov, 0, dsz, mtu, &buf); |
825 | if (rc < 0) | 825 | if (rc < 0) |
826 | goto exit; | 826 | goto exit; |
827 | 827 | ||
828 | do { | 828 | do { |
829 | rc = tipc_link_xmit2(buf, dnode, tsk->port.ref); | 829 | rc = tipc_link_xmit(buf, dnode, tsk->port.ref); |
830 | if (likely(rc >= 0)) { | 830 | if (likely(rc >= 0)) { |
831 | if (sock->state != SS_READY) | 831 | if (sock->state != SS_READY) |
832 | sock->state = SS_CONNECTING; | 832 | sock->state = SS_CONNECTING; |
@@ -934,12 +934,12 @@ static int tipc_send_stream(struct kiocb *iocb, struct socket *sock, | |||
934 | next: | 934 | next: |
935 | mtu = port->max_pkt; | 935 | mtu = port->max_pkt; |
936 | send = min_t(uint, dsz - sent, TIPC_MAX_USER_MSG_SIZE); | 936 | send = min_t(uint, dsz - sent, TIPC_MAX_USER_MSG_SIZE); |
937 | rc = tipc_msg_build2(mhdr, m->msg_iov, sent, send, mtu, &buf); | 937 | rc = tipc_msg_build(mhdr, m->msg_iov, sent, send, mtu, &buf); |
938 | if (unlikely(rc < 0)) | 938 | if (unlikely(rc < 0)) |
939 | goto exit; | 939 | goto exit; |
940 | do { | 940 | do { |
941 | if (likely(!tipc_sk_conn_cong(tsk))) { | 941 | if (likely(!tipc_sk_conn_cong(tsk))) { |
942 | rc = tipc_link_xmit2(buf, dnode, ref); | 942 | rc = tipc_link_xmit(buf, dnode, ref); |
943 | if (likely(!rc)) { | 943 | if (likely(!rc)) { |
944 | tsk->sent_unacked++; | 944 | tsk->sent_unacked++; |
945 | sent += send; | 945 | sent += send; |
@@ -1571,7 +1571,7 @@ static int tipc_backlog_rcv(struct sock *sk, struct sk_buff *buf) | |||
1571 | if ((rc < 0) && !tipc_msg_reverse(buf, &onode, -rc)) | 1571 | if ((rc < 0) && !tipc_msg_reverse(buf, &onode, -rc)) |
1572 | return 0; | 1572 | return 0; |
1573 | 1573 | ||
1574 | tipc_link_xmit2(buf, onode, 0); | 1574 | tipc_link_xmit(buf, onode, 0); |
1575 | 1575 | ||
1576 | return 0; | 1576 | return 0; |
1577 | } | 1577 | } |
@@ -1623,7 +1623,7 @@ exit: | |||
1623 | if ((rc < 0) && !tipc_msg_reverse(buf, &dnode, -rc)) | 1623 | if ((rc < 0) && !tipc_msg_reverse(buf, &dnode, -rc)) |
1624 | return -EHOSTUNREACH; | 1624 | return -EHOSTUNREACH; |
1625 | 1625 | ||
1626 | tipc_link_xmit2(buf, dnode, 0); | 1626 | tipc_link_xmit(buf, dnode, 0); |
1627 | return (rc < 0) ? -EHOSTUNREACH : 0; | 1627 | return (rc < 0) ? -EHOSTUNREACH : 0; |
1628 | } | 1628 | } |
1629 | 1629 | ||
@@ -1910,7 +1910,7 @@ restart: | |||
1910 | } | 1910 | } |
1911 | tipc_port_disconnect(port->ref); | 1911 | tipc_port_disconnect(port->ref); |
1912 | if (tipc_msg_reverse(buf, &peer, TIPC_CONN_SHUTDOWN)) | 1912 | if (tipc_msg_reverse(buf, &peer, TIPC_CONN_SHUTDOWN)) |
1913 | tipc_link_xmit2(buf, peer, 0); | 1913 | tipc_link_xmit(buf, peer, 0); |
1914 | } else { | 1914 | } else { |
1915 | tipc_port_shutdown(port->ref); | 1915 | tipc_port_shutdown(port->ref); |
1916 | } | 1916 | } |