mbox series

[4.9,0/2] net: initialize fastreuse on inet_inherit_port

Message ID 20200902140545.867718-1-tim.froidcoeur@tessares.net
Headers show
Series net: initialize fastreuse on inet_inherit_port | expand

Message

Tim Froidcoeur Sept. 2, 2020, 2:05 p.m. UTC
Fix for TPROXY initialization of fastreuse flag.
upstream patch was backported by Greg K-H to 4.14 and higher stable version.

see also https://lore.kernel.org/stable/20200818072007.GA9254@kroah.com/

code in inet_csk_get_port for 4.9 (and 4.4) is different from
the upstream version, so these backports had to be adapted (a bit)

Tim Froidcoeur (2):
  net: refactor bind_bucket fastreuse into helper
  net: initialize fastreuse on inet_inherit_port

 include/net/inet_connection_sock.h |  4 ++++
 net/ipv4/inet_connection_sock.c    | 37 ++++++++++++++++++++----------
 net/ipv4/inet_hashtables.c         |  1 +
 3 files changed, 30 insertions(+), 12 deletions(-)

--
2.25.1

Comments

Greg Kroah-Hartman Sept. 8, 2020, 1:19 p.m. UTC | #1
On Wed, Sep 02, 2020 at 04:05:43PM +0200, Tim Froidcoeur wrote:
> Fix for TPROXY initialization of fastreuse flag.
> upstream patch was backported by Greg K-H to 4.14 and higher stable version.
> 
> see also https://lore.kernel.org/stable/20200818072007.GA9254@kroah.com/
> 
> code in inet_csk_get_port for 4.9 (and 4.4) is different from
> the upstream version, so these backports had to be adapted (a bit)
> 
> Tim Froidcoeur (2):
>   net: refactor bind_bucket fastreuse into helper
>   net: initialize fastreuse on inet_inherit_port
> 
>  include/net/inet_connection_sock.h |  4 ++++
>  net/ipv4/inet_connection_sock.c    | 37 ++++++++++++++++++++----------
>  net/ipv4/inet_hashtables.c         |  1 +
>  3 files changed, 30 insertions(+), 12 deletions(-)
> 
> --
> 2.25.1

Both now queued up, thanks.

greg k-h