Peter Oskolkov
0ee58dad5b
net: tcp6: prefer listeners bound to an address
...
A relatively common use case is to have several IPs configured
on a host, and have different listeners for each of them. We would
like to add a "catch all" listener on addr_any, to match incoming
connections not served by any of the listeners bound to a specific
address.
However, port-only lookups can match addr_any sockets when sockets
listening on specific addresses are present if so_reuseport flag
is set. This patch eliminates lookups into port-only hashtable,
as lookups by (addr,port) tuple are easily available.
In addition, compute_score() is tweaked to _not_ match
addr_any sockets to specific addresses, as hash collisions
could result in the unwanted behavior described above.
Tested: the patch compiles; full test in the last patch in this
patchset. Existing reuseport_* selftests also pass.
Suggested-by: Eric Dumazet <[email protected] >
Signed-off-by: Peter Oskolkov <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2018-12-14 15:55:20 -08:00
..
6lowpan
9p
802
8021q
net: core: dev: Add extack argument to dev_change_flags()
2018-12-06 13:26:07 -08:00
appletalk
atm
ax25
batman-adv
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-11-19 10:55:00 -08:00
bluetooth
net: core: dev: Add extack argument to dev_open()
2018-12-06 13:26:06 -08:00
bpf
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
2018-12-10 18:00:43 -08:00
bpfilter
bridge
net: bridge: Handle NETDEV_PRE_CHANGEADDR from ports
2018-12-13 18:41:38 -08:00
caif
can
ceph
libceph: fall back to sendmsg for slab pages
2018-11-19 17:59:47 +01:00
core
neighbor: Remove externally learned entries from gc_list
2018-12-14 15:44:47 -08:00
dcb
dccp
decnet
net/decnet: add missing indentation
2018-11-16 19:42:49 -08:00
dns_resolver
dsa
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-12-09 21:43:31 -08:00
ethernet
net: ethernet: provide nvmem_get_mac_address()
2018-12-03 15:40:30 -08:00
hsr
ieee802154
net: dev: Add extack argument to dev_set_mac_address()
2018-12-13 18:41:38 -08:00
ife
ipv4
net: tcp: prefer listeners bound to an address
2018-12-14 15:55:20 -08:00
ipv6
net: tcp6: prefer listeners bound to an address
2018-12-14 15:55:20 -08:00
iucv
iucv: Remove SKB list assumptions.
2018-11-10 16:55:11 -08:00
kcm
key
l2tp
l2tp: fix a sock refcnt leak in l2tp_tunnel_register
2018-11-14 22:49:31 -08:00
l3mdev
l3mdev: add function to retreive upper master
2018-12-03 14:15:26 -08:00
lapb
llc
mac80211
mac80211: ignore NullFunc frames in the duplicate detection
2018-12-05 12:34:49 +01:00
mac802154
mpls
ncsi
net/ncsi: Add NCSI Mellanox OEM command
2018-11-27 16:37:20 -08:00
netfilter
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-11-28 22:10:54 -08:00
netlabel
netlink
netrom
nfc
nsh
openvswitch
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-12-09 21:43:31 -08:00
packet
packet: copy user buffers before orphan or clone
2018-11-23 11:08:03 -08:00
phonet
psample
qrtr
rds
rfkill
rose
rxrpc
rxrpc: Fix life check
2018-11-15 11:35:40 -08:00
sched
net_sched: fold tcf_block_cb_call() into tc_setup_cb_call()
2018-12-14 15:32:19 -08:00
sctp
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-12-09 21:43:31 -08:00
smc
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-11-24 17:01:43 -08:00
strparser
sunrpc
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-12-09 21:43:31 -08:00
switchdev
net: switchdev: Add extack to switchdev_handle_port_obj_add() callback
2018-12-12 16:34:22 -08:00
tipc
tipc: fix node keep alive interval calculation
2018-12-05 20:52:31 -08:00
tls
bpf: helper to pop data from messages
2018-11-28 22:07:57 +01:00
unix
vmw_vsock
wimax
wireless
cfg80211: Fix busy loop regression in ieee80211_ie_split_ric()
2018-12-05 12:51:29 +01:00
x25
net/x25: handle call collisions
2018-11-29 14:25:36 -08:00
xdp
xfrm
compat.c
Kconfig
Makefile
socket.c
socket: do a generic_file_splice_read when proto_ops has no splice_read
2018-11-17 21:34:11 -08:00
sysctl_net.c