inet: collapse ipv4/v6 rcv_saddr_equal functions into one
authorJosef Bacik <jbacik@fb.com>
Tue, 17 Jan 2017 15:51:01 +0000 (07:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2017 18:04:28 +0000 (13:04 -0500)
commitfe38d2a1c8bee0b3a0be40de5b621a28200612e5
tree92321ea6c293c9cd282bb7930e860885bbe96419
parentab70e5862670177d207ea0e0e16454e4083a5ad5
inet: collapse ipv4/v6 rcv_saddr_equal functions into one

We pass these per-protocol equal functions around in various places, but
we can just have one function that checks the sk->sk_family and then do
the right comparison function.  I've also changed the ipv4 version to
not cast to inet_sock since it is unneeded.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/addrconf.h
include/net/inet_hashtables.h
include/net/udp.h
net/ipv4/inet_connection_sock.c
net/ipv4/inet_hashtables.c
net/ipv4/udp.c
net/ipv6/inet6_connection_sock.c
net/ipv6/inet6_hashtables.c
net/ipv6/udp.c