Paolo Abeni
e94a62f507
net/reuseport: drop legacy code
...
Since commit e32ea7e747 ("soreuseport: fast reuseport UDP socket
selection") and commit c125e80b88 ("soreuseport: fast reuseport
TCP socket selection") the relevant reuseport socket matching the current
packet is selected by the reuseport_select_sock() call. The only
exceptions are invalid BPF filters/filters returning out-of-range
indices.
In the latter case the code implicitly falls back to using the hash
demultiplexing, but instead of selecting the socket inside the
reuseport_select_sock() function, it relies on the hash selection
logic introduced with the early soreuseport implementation.
With this patch, in case of a BPF filter returning a bad socket
index value, we fall back to hash-based selection inside the
reuseport_select_sock() body, so that we can drop some duplicate
code in the ipv4 and ipv6 stack.
This also allows faster lookup in the above scenario and will allow
us to avoid computing the hash value for successful, BPF based
demultiplexing - in a later patch.
Signed-off-by: Paolo Abeni <[email protected] >
Acked-by: Craig Gallek <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2017-11-30 10:56:32 -05:00
..
ila
ila: Add a hook type for LWT routes
2017-11-08 11:20:49 +09:00
netfilter
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next
2017-11-08 14:22:50 +09:00
addrconf.c
treewide: setup_timer() -> timer_setup()
2017-11-21 15:57:07 -08:00
addrconf_core.c
net: ipv6: Make inet6addr_validator a blocking notifier
2017-10-20 13:15:07 +01:00
addrlabel.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-11-04 09:26:51 +09:00
af_inet6.c
ipv6: Implement limits on Hop-by-Hop and Destination options
2017-11-03 09:50:22 +09:00
ah6.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2017-11-15 11:56:19 -08:00
anycast.c
calipso.c
datagram.c
esp6.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2017-11-15 11:56:19 -08:00
esp6_offload.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-09-01 17:42:05 -07:00
exthdrs.c
ipv6: Implement limits on Hop-by-Hop and Destination options
2017-11-03 09:50:22 +09:00
exthdrs_core.c
net: ipv6: remove unused code in ipv6_find_hdr()
2017-10-05 21:53:02 -07:00
exthdrs_offload.c
fib6_notifier.c
net: Add module reference to FIB notifiers
2017-09-01 20:33:42 -07:00
fib6_rules.c
fou6.c
icmp.c
ipv6: mark expected switch fall-throughs
2017-10-18 14:13:08 +01:00
inet6_connection_sock.c
inet6_hashtables.c
net/reuseport: drop legacy code
2017-11-30 10:56:32 -05:00
ip6_checksum.c
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
ip6_fib.c
ipv6: Move rt6_next from dst_entry into ipv6 route structure.
2017-11-30 09:54:25 -05:00
ip6_flowlabel.c
treewide: Switch DEFINE_TIMER callbacks to struct timer_list *
2017-11-21 15:57:05 -08:00
ip6_gre.c
gre6: use log_ecn_error module parameter in ip6_tnl_rcv()
2017-11-19 12:22:19 +09:00
ip6_icmp.c
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
ip6_input.c
ip6_offload.c
gso: fix payload length when gso_size is zero
2017-10-08 10:12:15 -07:00
ip6_offload.h
ip6_output.c
xfrm: Move dst->path into struct xfrm_dst
2017-11-30 09:54:26 -05:00
ip6_tunnel.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2017-11-15 11:56:19 -08:00
ip6_udp_tunnel.c
ip6_vti.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-10-05 18:19:22 -07:00
ip6mr.c
treewide: setup_timer() -> timer_setup()
2017-11-21 15:57:07 -08:00
ipcomp6.c
ipv6_sockglue.c
net-ipv6: add support for sockopt(SOL_IPV6, IPV6_FREEBIND)
2017-09-30 05:30:52 +01:00
Kconfig
ipv6: sr: add helper functions for seg6local
2017-08-25 17:10:24 -07:00
Makefile
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
mcast.c
treewide: setup_timer() -> timer_setup()
2017-11-21 15:57:07 -08:00
mcast_snoop.c
mip6.c
ndisc.c
net: ipv6: sysctl to specify IPv6 ND traffic class
2017-11-11 15:13:02 +09:00
netfilter.c
output_core.c
net: accept UFO datagrams from tuntap and packet
2017-11-24 01:37:35 +09:00
ping.c
net/ipv6: Convert icmpv6_push_pending_frames to void
2017-10-06 09:52:31 -07:00
proc.c
protocol.c
raw.c
ipv6: mark expected switch fall-throughs
2017-10-18 14:13:08 +01:00
reassembly.c
inet: frags: Convert timers to use timer_setup()
2017-10-18 12:39:55 +01:00
route.c
xfrm: Move dst->path into struct xfrm_dst
2017-11-30 09:54:26 -05:00
seg6.c
seg6_hmac.c
ipv6: sr: Use ARRAY_SIZE macro
2017-09-01 18:35:23 -07:00
seg6_iptunnel.c
ipv6: sr: add support for encapsulation of L2 frames
2017-08-25 17:10:23 -07:00
seg6_local.c
ipv6: sr: remove duplicate routing header type check
2017-09-11 14:34:10 -07:00
sit.c
net: sit: Update lookup to handle links set to L3 slave
2017-11-01 12:35:17 +09:00
syncookies.c
tcp: Namespace-ify sysctl_tcp_workaround_signed_windows
2017-10-28 19:24:38 +09:00
sysctl_net_ipv6.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-11-04 09:26:51 +09:00
tcp_ipv6.c
tcp: Namespace-ify sysctl_tcp_rmem and sysctl_tcp_wmem
2017-11-10 14:34:58 +09:00
tcpv6_offload.c
tunnel6.c
udp.c
net/reuseport: drop legacy code
2017-11-30 10:56:32 -05:00
udp_impl.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
udp_offload.c
net: accept UFO datagrams from tuntap and packet
2017-11-24 01:37:35 +09:00
udplite.c
xfrm6_input.c
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
xfrm6_mode_beet.c
xfrm6_mode_ro.c
xfrm6_mode_transport.c
xfrm6_mode_tunnel.c
net: Create and use new helper xfrm_dst_child().
2017-11-30 09:54:25 -05:00
xfrm6_output.c
xfrm6_policy.c
net: Create and use new helper xfrm_dst_child().
2017-11-30 09:54:25 -05:00
xfrm6_protocol.c
xfrm6_state.c
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
xfrm6_tunnel.c
xfrm6_tunnel: exit_net cleanup check added
2017-11-14 15:46:17 +09:00