diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-18 17:05:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-18 22:00:35 -0400 |
commit | 77a6a471bc18763cb2e80a8cc92f4c04eae37d32 (patch) | |
tree | 47b4a53ce453ec42d096467ad1a3c2130f7cf362 /net/ipv6/tcp_ipv6.c | |
parent | d1e559d0b1b0d02f76a6bd5b768a99dc834ae926 (diff) |
ipv6: get rid of __inet6_hash()
We can now use inet_hash() and __inet_hash() instead of private
functions.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 5546df074583..720676d073d9 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -104,19 +104,6 @@ static void inet6_sk_rx_dst_set(struct sock *sk, const struct sk_buff *skb) | |||
104 | } | 104 | } |
105 | } | 105 | } |
106 | 106 | ||
107 | static void tcp_v6_hash(struct sock *sk) | ||
108 | { | ||
109 | if (sk->sk_state != TCP_CLOSE) { | ||
110 | if (inet_csk(sk)->icsk_af_ops == &ipv6_mapped) { | ||
111 | tcp_prot.hash(sk); | ||
112 | return; | ||
113 | } | ||
114 | local_bh_disable(); | ||
115 | __inet6_hash(sk, NULL); | ||
116 | local_bh_enable(); | ||
117 | } | ||
118 | } | ||
119 | |||
120 | static __u32 tcp_v6_init_sequence(const struct sk_buff *skb) | 107 | static __u32 tcp_v6_init_sequence(const struct sk_buff *skb) |
121 | { | 108 | { |
122 | return secure_tcpv6_sequence_number(ipv6_hdr(skb)->daddr.s6_addr32, | 109 | return secure_tcpv6_sequence_number(ipv6_hdr(skb)->daddr.s6_addr32, |
@@ -1224,7 +1211,7 @@ static struct sock *tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb, | |||
1224 | tcp_done(newsk); | 1211 | tcp_done(newsk); |
1225 | goto out; | 1212 | goto out; |
1226 | } | 1213 | } |
1227 | __inet6_hash(newsk, NULL); | 1214 | __inet_hash(newsk, NULL); |
1228 | 1215 | ||
1229 | return newsk; | 1216 | return newsk; |
1230 | 1217 | ||
@@ -1883,7 +1870,7 @@ struct proto tcpv6_prot = { | |||
1883 | .sendpage = tcp_sendpage, | 1870 | .sendpage = tcp_sendpage, |
1884 | .backlog_rcv = tcp_v6_do_rcv, | 1871 | .backlog_rcv = tcp_v6_do_rcv, |
1885 | .release_cb = tcp_release_cb, | 1872 | .release_cb = tcp_release_cb, |
1886 | .hash = tcp_v6_hash, | 1873 | .hash = inet_hash, |
1887 | .unhash = inet_unhash, | 1874 | .unhash = inet_unhash, |
1888 | .get_port = inet_csk_get_port, | 1875 | .get_port = inet_csk_get_port, |
1889 | .enter_memory_pressure = tcp_enter_memory_pressure, | 1876 | .enter_memory_pressure = tcp_enter_memory_pressure, |