From: David S. Miller Date: Thu, 19 Mar 2015 02:00:44 +0000 (-0400) Subject: Merge branch 'listen_refactor_part_13' X-Git-Tag: v5.15~15978^2~215 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fdf9ef8999c0758bf622899e049f2be45ab1f4da;p=platform%2Fkernel%2Flinux-starfive.git Merge branch 'listen_refactor_part_13' Eric Dumazet says: ==================== inet: tcp listener refactoring, part 13 inet_hash functions are in a bad state : Too much IPv6/IPv4 copy/pasting. Lets refactor a bit. Idea is that we do not want to have an equivalent of inet_csk(sk)->icsk_af_ops for request socks in order to be able to use the right variant. In this patch series, I started to let IPv6/IPv4 converge to common helpers. Idea is to use ipv6_addr_set_v4mapped() even for AF_INET sockets, so that we can test if (sk->sk_family == AF_INET6 && !ipv6_addr_v4mapped(&sk->sk_v6_daddr)) to tell if we deal with an IPv6 socket, or IPv4 one, at least in slow paths. Ideally, we could save 8 bytes per struct sock_common, if we alias skc_daddr & skc_rcv_saddr to skc_v6_daddr[3]/skc_v6_rcv_saddr[3]. ==================== Signed-off-by: David S. Miller --- fdf9ef8999c0758bf622899e049f2be45ab1f4da