linux/net/ipv4
Eric Dumazet 0536fcc039 tcp: prepare fastopen code for upcoming listener changes
While auditing TCP stack for upcoming 'lockless' listener changes,
I found I had to change fastopen_init_queue() to properly init the object
before publishing it.

Otherwise an other cpu could try to lock the spinlock before it gets
properly initialized.

Instead of adding appropriate barriers, just remove dynamic memory
allocations :
- Structure is 28 bytes on 64bit arches. Using additional 8 bytes
  for holding a pointer seems overkill.
- Two listeners can share same cache line and performance would suffer.

If we really want to save few bytes, we would instead dynamically allocate
whole struct request_sock_queue in the future.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-09-29 16:53:10 -07:00
..
netfilter netfilter: Pass net into nf_xfrm_me_harder 2015-09-18 22:00:22 +02:00
af_inet.c tcp: prepare fastopen code for upcoming listener changes 2015-09-29 16:53:10 -07:00
ah4.c
arp.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-09-26 16:08:27 -07:00
cipso_ipv4.c
datagram.c
devinet.c rtnetlink: RTEXT_FILTER_SKIP_STATS support to avoid dumping inet/inet6 stats 2015-09-15 15:25:02 -07:00
esp4.c
fib_frontend.c
fib_lookup.h
fib_rules.c net: ipv6: use common fib_default_rule_pref 2015-09-09 14:19:50 -07:00
fib_semantics.c
fib_trie.c net: Fix vti use case with oif in dst lookups 2015-09-17 16:36:34 -07:00
fou.c
gre_demux.c
gre_offload.c
icmp.c net: Fix panic in icmp_route_lookup 2015-09-25 21:44:02 -07:00
igmp.c net/ipv4: Pass proto as u8 instead of u16 in ip_check_mc_rcu 2015-09-29 16:27:47 -07:00
inet_connection_sock.c tcp: prepare fastopen code for upcoming listener changes 2015-09-29 16:53:10 -07:00
inet_diag.c
inet_fragment.c
inet_hashtables.c inet: constify __inet_inherit_port() sock argument 2015-09-29 16:53:08 -07:00
inet_lro.c
inet_timewait_sock.c tcp/dccp: fix timewait races in timer handling 2015-09-21 16:32:29 -07:00
inetpeer.c
ip_forward.c netfilter: Pass net into okfn 2015-09-17 17:18:37 -07:00
ip_fragment.c
ip_gre.c
ip_input.c netfilter: Pass net into okfn 2015-09-17 17:18:37 -07:00
ip_options.c
ip_output.c ip: constify ip_build_and_send_pkt() socket argument 2015-09-25 13:00:38 -07:00
ip_sockglue.c
ip_tunnel_core.c lwtunnel: remove source and destination UDP port config option 2015-09-24 14:31:37 -07:00
ip_tunnel.c
ip_vti.c net: Merge dst_output and dst_output_sk 2015-09-17 17:18:32 -07:00
ipcomp.c
ipconfig.c
ipip.c
ipmr.c netfilter: Pass net into okfn 2015-09-17 17:18:37 -07:00
Kconfig
Makefile
netfilter.c
ping.c
proc.c
protocol.c
raw.c netfilter: Pass net into okfn 2015-09-17 17:18:37 -07:00
route.c net: Remove martian_source_keep_err goto label 2015-09-29 16:27:47 -07:00
syncookies.c tcp: cookie_init_sequence() cleanups 2015-09-29 16:53:09 -07:00
sysctl_net_ipv4.c
tcp_bic.c
tcp_cdg.c
tcp_cong.c tcp: remove tcp_ecn_make_synack() socket argument 2015-09-25 13:00:38 -07:00
tcp_cubic.c tcp_cubic: do not set epoch_start in the future 2015-09-17 22:35:07 -07:00
tcp_dctcp.c
tcp_diag.c
tcp_fastopen.c tcp: prepare fastopen code for upcoming listener changes 2015-09-29 16:53:10 -07:00
tcp_highspeed.c
tcp_htcp.c
tcp_hybla.c
tcp_illinois.c
tcp_input.c tcp: constify tcp_syn_flood_action() socket argument 2015-09-29 16:53:10 -07:00
tcp_ipv4.c tcp: prepare fastopen code for upcoming listener changes 2015-09-29 16:53:10 -07:00
tcp_lp.c
tcp_memcontrol.c
tcp_metrics.c
tcp_minisocks.c tcp: constify tcp_create_openreq_child() socket argument 2015-09-29 16:53:09 -07:00
tcp_offload.c
tcp_output.c tcp: Fix CWV being too strict on thin streams 2015-09-28 22:36:30 -07:00
tcp_probe.c
tcp_scalable.c
tcp_timer.c
tcp_vegas.c
tcp_vegas.h
tcp_veno.c
tcp_westwood.c
tcp_yeah.c
tcp.c tcp: prepare fastopen code for upcoming listener changes 2015-09-29 16:53:10 -07:00
tunnel4.c
udp_diag.c
udp_impl.h
udp_offload.c
udp_tunnel.c
udp.c net: Fix vti use case with oif in dst lookups 2015-09-17 16:36:34 -07:00
udplite.c
xfrm4_input.c netfilter: Pass net into okfn 2015-09-17 17:18:37 -07:00
xfrm4_mode_beet.c
xfrm4_mode_transport.c
xfrm4_mode_tunnel.c
xfrm4_output.c netfilter: Add blank lines in callers of netfilter hooks 2015-09-17 17:18:37 -07:00
xfrm4_policy.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-09-26 16:08:27 -07:00
xfrm4_protocol.c
xfrm4_state.c
xfrm4_tunnel.c