Eric Dumazet
be9f4a44e7
ipv4: tcp: remove per net tcp_sock
...
tcp_v4_send_reset() and tcp_v4_send_ack() use a single socket
per network namespace.
This leads to bad behavior on multiqueue NICS, because many cpus
contend for the socket lock and once socket lock is acquired, extra
false sharing on various socket fields slow down the operations.
To better resist to attacks, we use a percpu socket. Each cpu can
run without contention, using appropriate memory (local node)
Additional features :
1) We also mirror the queue_mapping of the incoming skb, so that
answers use the same queue if possible.
2) Setting SOCK_USE_WRITE_QUEUE socket flag speedup sock_wfree()
3) We now limit the number of in-flight RST/ACK [1] packets
per cpu, instead of per namespace, and we honor the sysctl_wmem_default
limit dynamically. (Prior to this patch, sysctl_wmem_default value was
copied at boot time, so any further change would not affect tcp_sock
limit)
[1] These packets are only generated when no socket was matched for
the incoming packet.
Reported-by: Bill Sommerfeld <[email protected] >
Signed-off-by: Eric Dumazet <[email protected] >
Cc: Tom Herbert <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2012-07-19 10:35:30 -07:00
..
9p
net: Fix (nearly-)kernel-doc comments for various functions
2012-07-10 23:13:45 -07:00
802
tokenring: delete all remaining driver support
2012-05-15 20:23:16 -04:00
8021q
netpoll: move np->dev and np->dev_name init into __netpoll_setup()
2012-07-17 09:02:36 -07:00
appletalk
net: Fix (nearly-)kernel-doc comments for various functions
2012-07-10 23:13:45 -07:00
atm
net: Remove casts to same type
2012-06-04 11:45:11 -04:00
ax25
small cleanup in ax25_addr_parse()
2012-07-09 00:16:16 -07:00
batman-adv
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2012-07-10 23:56:33 -07:00
bluetooth
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
2012-07-09 16:34:34 -04:00
bridge
Merge branch 'nexthop_exceptions'
2012-07-17 10:48:26 -07:00
caif
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2012-06-28 17:37:00 -07:00
can
can: gw: Remove pointless casts
2012-07-10 22:36:17 +02:00
ceph
net: Fix non-kernel-doc comments with kernel-doc start marker
2012-07-10 23:13:45 -07:00
core
ipv6: add ipv6_addr_hash() helper
2012-07-18 11:28:46 -07:00
dcb
net: Fix non-kernel-doc comments with kernel-doc start marker
2012-07-10 23:13:45 -07:00
dccp
net: Pass optional SKB and SK arguments to dst_ops->{update_pmtu,redirect}()
2012-07-17 03:29:28 -07:00
decnet
net: Pass optional SKB and SK arguments to dst_ops->{update_pmtu,redirect}()
2012-07-17 03:29:28 -07:00
dns_resolver
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
2012-05-21 20:27:36 -07:00
dsa
dsa: Convert compare_ether_addr to ether_addr_equal
2012-05-09 20:49:19 -04:00
ethernet
net: Fix (nearly-)kernel-doc comments for various functions
2012-07-10 23:13:45 -07:00
ieee802154
6lowpan: Change byte order when storing/accessing to len field
2012-07-16 22:52:02 -07:00
ipv4
ipv4: tcp: remove per net tcp_sock
2012-07-19 10:35:30 -07:00
ipv6
ipv6: add ipv6_addr_hash() helper
2012-07-18 11:28:46 -07:00
ipx
ipx: Remove spurious NULL checking in ipx_ioctl().
2012-05-19 00:51:04 -04:00
irda
irda: Fix typo in irda
2012-07-16 23:23:52 -07:00
iucv
net: remove skb_orphan_try()
2012-06-15 15:30:15 -07:00
key
net: cleanup unsigned to unsigned int
2012-04-15 12:44:40 -04:00
l2tp
net: l2tp_eth: provide tx_dropped counter
2012-06-29 00:52:32 -07:00
lapb
lapb: Neaten debugging
2012-05-17 18:45:20 -04:00
llc
net: Fix (nearly-)kernel-doc comments for various functions
2012-07-10 23:13:45 -07:00
mac80211
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
2012-07-12 13:44:50 -04:00
mac802154
mac802154: sparse warnings: make symbols static
2012-07-12 07:54:45 -07:00
netfilter
net: Pass optional SKB and SK arguments to dst_ops->{update_pmtu,redirect}()
2012-07-17 03:29:28 -07:00
netlabel
netlink
net: Fix (nearly-)kernel-doc comments for various functions
2012-07-10 23:13:45 -07:00
netrom
net: Convert all sysctl registrations to register_net_sysctl
2012-04-20 21:22:30 -04:00
nfc
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
2012-07-12 13:44:50 -04:00
openvswitch
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2012-05-16 22:17:37 -04:00
packet
net: added support for 40GbE link.
2012-06-27 15:42:24 -07:00
phonet
net: remove my future former mail address
2012-06-17 16:29:38 -07:00
rds
net: Fix (nearly-)kernel-doc comments for various functions
2012-07-10 23:13:45 -07:00
rfkill
rfkill: Add the capability to switch all devices of all type in __rfkill_switch_all().
2012-06-06 15:18:17 -04:00
rose
net: Convert all sysctl registrations to register_net_sysctl
2012-04-20 21:22:30 -04:00
rxrpc
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2012-07-10 23:56:33 -07:00
sched
netem: refine early skb orphaning
2012-07-16 23:08:33 -07:00
sctp
Merge branch 'nexthop_exceptions'
2012-07-17 10:48:26 -07:00
sunrpc
ipv6: add ipv6_addr_hash() helper
2012-07-18 11:28:46 -07:00
tipc
tipc: remove print_buf and deprecated log buffer code
2012-07-13 19:34:43 -04:00
unix
net: make sock diag per-namespace
2012-07-16 22:31:34 -07:00
wanrouter
net/wanrouter: Deprecate and schedule for removal
2012-05-24 16:22:53 -04:00
wimax
net: cleanup unsigned to unsigned int
2012-04-15 12:44:40 -04:00
wireless
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
2012-07-12 13:44:50 -04:00
x25
net: Fix (nearly-)kernel-doc comments for various functions
2012-07-10 23:13:45 -07:00
xfrm
xfrm: Initialize the struct xfrm_dst behind the dst_enty field
2012-07-14 00:29:12 -07:00
compat.c
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
2012-05-21 20:27:36 -07:00
Kconfig
net: drop NET dependency from HAVE_BPF_JIT
2012-05-21 12:50:12 -07:00
Makefile
econet: remove ancient bug ridden protocol
2012-05-18 01:35:08 -04:00
nonet.c
socket.c
Merge branch 'for-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu
2012-05-22 17:37:47 -07:00
sysctl_net.c
net: delete all instances of special processing for token ring
2012-05-15 20:14:35 -04:00