Re: [PATCH net] inet_connection_sock: clear inet_num out of destroy helper

2020-06-04 Thread David Miller
From: Paolo Abeni Date: Thu, 4 Jun 2020 18:55:45 +0200 > Clearing the 'inet_num' field is necessary and safe if and > only if the socket is not bound. The MPTCP protocol calls > the destroy helper on bound sockets, as tcp_v{4,6}_syn_recv_sock > completed successfully. > > Move the clearing of s

Re: [PATCH net] inet_connection_sock: clear inet_num out of destroy helper

2020-06-04 Thread Eric Dumazet
On 6/4/20 9:55 AM, Paolo Abeni wrote: > Clearing the 'inet_num' field is necessary and safe if and > only if the socket is not bound. The MPTCP protocol calls > the destroy helper on bound sockets, as tcp_v{4,6}_syn_recv_sock > completed successfully. > > Move the clearing of such field out of

[PATCH net] inet_connection_sock: clear inet_num out of destroy helper

2020-06-04 Thread Paolo Abeni
Clearing the 'inet_num' field is necessary and safe if and only if the socket is not bound. The MPTCP protocol calls the destroy helper on bound sockets, as tcp_v{4,6}_syn_recv_sock completed successfully. Move the clearing of such field out of the common code, otherwise the MPTCP MP_JOIN error pa