Re: [PATCH net 1/2] udp: Copy has_conns in reuseport_grow().

2020-07-21 Thread Willem de Bruijn
On Tue, Jul 21, 2020 at 2:16 AM Kuniyuki Iwashima wrote: > > If an unconnected socket in a UDP reuseport group connect()s, has_conns is > set to 1. Then, when a packet is received, udp[46]_lib_lookup2() scans all > sockets in udp_hslot looking for the connected socket with the highest > score. > >

[PATCH net 1/2] udp: Copy has_conns in reuseport_grow().

2020-07-20 Thread Kuniyuki Iwashima
If an unconnected socket in a UDP reuseport group connect()s, has_conns is set to 1. Then, when a packet is received, udp[46]_lib_lookup2() scans all sockets in udp_hslot looking for the connected socket with the highest score. However, when the number of sockets bound to the port exceeds max_sock