inet: rename some inet_sock fields
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 15 Oct 2009 06:30:45 +0000 (06:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Oct 2009 01:52:53 +0000 (18:52 -0700)
commitc720c7e8383aff1cb219bddf474ed89d850336e3
tree4f12337e6690fccced376db9f501eaf98614a65e
parent988ade6b8e27e79311812f83a87b5cea11fabcd7
inet: rename some inet_sock fields

In order to have better cache layouts of struct sock (separate zones
for rx/tx paths), we need this preliminary patch.

Goal is to transfert fields used at lookup time in the first
read-mostly cache line (inside struct sock_common) and move sk_refcnt
to a separate cache line (only written by rx path)

This patch adds inet_ prefix to daddr, rcv_saddr, dport, num, saddr,
sport and id fields. This allows a future patch to define these
fields as macros, like sk_refcnt, without name clashes.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
47 files changed:
drivers/net/pppol2tp.c
fs/ocfs2/cluster/netdebug.c
include/linux/ipv6.h
include/net/inet6_hashtables.h
include/net/inet_hashtables.h
include/net/inet_sock.h
include/net/inet_timewait_sock.h
include/net/ip.h
net/dccp/ipv4.c
net/dccp/ipv6.c
net/dccp/output.c
net/dccp/probe.c
net/dccp/proto.c
net/ipv4/af_inet.c
net/ipv4/datagram.c
net/ipv4/inet_connection_sock.c
net/ipv4/inet_diag.c
net/ipv4/inet_hashtables.c
net/ipv4/inet_timewait_sock.c
net/ipv4/ip_input.c
net/ipv4/ip_output.c
net/ipv4/ip_sockglue.c
net/ipv4/ipmr.c
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
net/ipv4/raw.c
net/ipv4/tcp.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_output.c
net/ipv4/tcp_probe.c
net/ipv4/tcp_timer.c
net/ipv4/udp.c
net/ipv6/af_inet6.c
net/ipv6/datagram.c
net/ipv6/inet6_connection_sock.c
net/ipv6/inet6_hashtables.c
net/ipv6/ip6mr.c
net/ipv6/ipv6_sockglue.c
net/ipv6/raw.c
net/ipv6/syncookies.c
net/ipv6/tcp_ipv6.c
net/ipv6/udp.c
net/netfilter/xt_socket.c
net/rds/tcp_listen.c
net/sctp/protocol.c
net/sctp/socket.c
net/sunrpc/svcsock.c
security/lsm_audit.c