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>
This commit is contained in:
committed by
David S. Miller
parent
d1e559d0b1
commit
77a6a471bc
+2
-15
@@ -40,19 +40,6 @@
|
||||
static const struct inet_connection_sock_af_ops dccp_ipv6_mapped;
|
||||
static const struct inet_connection_sock_af_ops dccp_ipv6_af_ops;
|
||||
|
||||
static void dccp_v6_hash(struct sock *sk)
|
||||
{
|
||||
if (sk->sk_state != DCCP_CLOSED) {
|
||||
if (inet_csk(sk)->icsk_af_ops == &dccp_ipv6_mapped) {
|
||||
inet_hash(sk);
|
||||
return;
|
||||
}
|
||||
local_bh_disable();
|
||||
__inet6_hash(sk, NULL);
|
||||
local_bh_enable();
|
||||
}
|
||||
}
|
||||
|
||||
/* add pseudo-header to DCCP checksum stored in skb->csum */
|
||||
static inline __sum16 dccp_v6_csum_finish(struct sk_buff *skb,
|
||||
const struct in6_addr *saddr,
|
||||
@@ -588,7 +575,7 @@ static struct sock *dccp_v6_request_recv_sock(struct sock *sk,
|
||||
dccp_done(newsk);
|
||||
goto out;
|
||||
}
|
||||
__inet6_hash(newsk, NULL);
|
||||
__inet_hash(newsk, NULL);
|
||||
|
||||
return newsk;
|
||||
|
||||
@@ -1056,7 +1043,7 @@ static struct proto dccp_v6_prot = {
|
||||
.sendmsg = dccp_sendmsg,
|
||||
.recvmsg = dccp_recvmsg,
|
||||
.backlog_rcv = dccp_v6_do_rcv,
|
||||
.hash = dccp_v6_hash,
|
||||
.hash = inet_hash,
|
||||
.unhash = inet_unhash,
|
||||
.accept = inet_csk_accept,
|
||||
.get_port = inet_csk_get_port,
|
||||
|
||||
Reference in New Issue
Block a user