Paolo Abeni
850cbaddb5
udp: use it's own memory accounting schema
...
Completely avoid default sock memory accounting and replace it
with udp-specific accounting.
Since the new memory accounting model encapsulates completely
the required locking, remove the socket lock on both enqueue and
dequeue, and avoid using the backlog on enqueue.
Be sure to clean-up rx queue memory on socket destruction, using
udp its own sk_destruct.
Tested using pktgen with random src port, 64 bytes packet,
wire-speed on a 10G link as sender and udp_sink as the receiver,
using an l4 tuple rxhash to stress the contention, and one or more
udp_sink instances with reuseport.
nr readers Kpps (vanilla) Kpps (patched)
1 170 440
3 1250 2150
6 3000 3650
9 4200 4450
12 5700 6250
v4 -> v5:
- avoid unneeded test in first_packet_length
v3 -> v4:
- remove useless sk_rcvqueues_full() call
v2 -> v3:
- do not set the now unsed backlog_rcv callback
v1 -> v2:
- add memory pressure support
- fixed dropwatch accounting for ipv6
Acked-by: Hannes Frederic Sowa <[email protected] >
Signed-off-by: Paolo Abeni <[email protected] >
Acked-by: Eric Dumazet <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2016-10-22 17:05:05 -04:00
..
6lowpan
6lowpan: ndisc: no overreact if no short address is available
2016-09-19 20:19:34 +02:00
9p
IB/core: add support to create a unsafe global rkey to ib_create_pd
2016-09-23 13:47:44 -04:00
802
net: use core MTU range checking in misc drivers
2016-10-20 14:51:10 -04:00
8021q
net: use core MTU range checking in core net infra
2016-10-20 14:51:09 -04:00
appletalk
appletalk: use IS_ENABLED() instead of checking for built-in or module
2016-09-10 21:19:10 -07:00
atm
net: remove MTU limits on a few ether_setup callers
2016-10-21 13:57:50 -04:00
ax25
batman-adv
net: use core MTU range checking in misc drivers
2016-10-20 14:51:10 -04:00
bluetooth
net: remove MTU limits on a few ether_setup callers
2016-10-21 13:57:50 -04:00
bridge
net: use core MTU range checking in core net infra
2016-10-20 14:51:09 -04:00
caif
can
ceph
crush: remove redundant local variable
2016-10-05 23:02:10 +02:00
core
net/socket: factor out helpers for memory and queue manipulation
2016-10-22 17:05:05 -04:00
dcb
dccp
decnet
dns_resolver
dsa
net: remove MTU limits on a few ether_setup callers
2016-10-21 13:57:50 -04:00
ethernet
net: deprecate eth_change_mtu, remove usage
2016-10-13 09:36:57 -04:00
hsr
net: use core MTU range checking in misc drivers
2016-10-20 14:51:10 -04:00
ieee802154
ipv4
udp: use it's own memory accounting schema
2016-10-22 17:05:05 -04:00
ipv6
udp: use it's own memory accounting schema
2016-10-22 17:05:05 -04:00
ipx
irda
net: remove MTU limits on a few ether_setup callers
2016-10-21 13:57:50 -04:00
iucv
Subject: [PATCH] af_iucv: drop skbs rejected by filter
2016-10-12 01:56:04 -04:00
kcm
Merge branch 'work.splice_read' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2016-10-07 15:36:58 -07:00
key
l2tp
net: remove MTU limits on a few ether_setup callers
2016-10-21 13:57:50 -04:00
l3mdev
net: ipv6: Remove l3mdev_get_saddr6
2016-09-10 23:12:53 -07:00
lapb
llc
llc: switch type to bool as the timeout is only tested versus 0
2016-09-17 10:05:05 -04:00
mac80211
net: use core MTU range checking in wireless drivers
2016-10-20 14:51:08 -04:00
mac802154
mac802154: use rate limited warnings for malformed frames
2016-09-19 20:19:34 +02:00
mpls
mpls: move mpls_hdr to a common location
2016-10-03 02:00:21 -04:00
ncsi
net/ncsi: Introduce ncsi_stop_dev()
2016-10-04 02:11:51 -04:00
netfilter
netfilter: Fix slab corruption.
2016-10-11 04:44:37 -04:00
netlabel
netlink
netlink: do not enter direct reclaim from netlink_dump()
2016-10-06 20:53:13 -04:00
netrom
nfc
openvswitch
net: use core MTU range checking in core net infra
2016-10-20 14:51:09 -04:00
packet
packet: call fanout_release, while UNREGISTERING a netdev
2016-10-06 20:50:18 -04:00
phonet
net: use core MTU range checking in misc drivers
2016-10-20 14:51:10 -04:00
qrtr
rds
rds: Remove duplicate prefix from rds_conn_path_error use
2016-10-17 11:07:22 -04:00
rfkill
rose
rxrpc
rxrpc: Don't request an ACK on the last DATA packet of a call's Tx phase
2016-10-06 08:11:51 +01:00
sched
net: use core MTU range checking in core net infra
2016-10-20 14:51:09 -04:00
sctp
sctp: remove the old ttl expires policy
2016-10-13 09:44:14 -04:00
strparser
strparser: Propagate correct error code in strp_recv()
2016-10-12 01:51:49 -04:00
sunrpc
udp: use it's own memory accounting schema
2016-10-22 17:05:05 -04:00
switchdev
switchdev: remove FIB offload infrastructure
2016-09-28 04:48:00 -04:00
tipc
tipc: info leak in __tipc_nl_add_udp_addr()
2016-10-13 12:10:01 -04:00
unix
skb_splice_bits(): get rid of callback
2016-10-03 20:40:56 -04:00
vmw_vsock
VSOCK: Don't dec ack backlog twice for rejected connections
2016-09-27 07:59:25 -04:00
wimax
wireless
Merge remote-tracking branch 'net-next/master' into mac80211-next
2016-10-04 09:46:44 +02:00
x25
net: x25: remove null checks on arrays calling_ae and called_ae
2016-09-09 18:13:30 -07:00
xfrm
proc: Reduce cache miss in xfrm_statistics_seq_show
2016-09-30 01:50:45 -04:00
compat.c
Kconfig
Makefile
socket.c
vfs: Remove {get,set,remove}xattr inode operations
2016-10-07 21:48:36 -04:00
sysctl_net.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
2016-10-06 09:52:23 -07:00