[PATCH 4.4 0/2] net: initialize fastreuse on inet_inherit_port

2020-09-02 Thread Tim Froidcoeur
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| 46 ++ net/ipv4/inet_hashtables.c

[PATCH 4.4 1/2] net: refactor bind_bucket fastreuse into helper

2020-09-02 Thread Tim Froidcoeur
[ Upstream commit 62ffc589abb176821662efc4525ee4ac0b9c3894 ] Refactor the fastreuse update code in inet_csk_get_port into a small helper function that can be called from other places. Acked-by: Matthieu Baerts Signed-off-by: Tim Froidcoeur Signed-off-by: David S. Miller Signed-off-by: Tim

[PATCH 4.9 1/2] net: refactor bind_bucket fastreuse into helper

2020-09-02 Thread Tim Froidcoeur
[ Upstream commit 62ffc589abb176821662efc4525ee4ac0b9c3894 ] Refactor the fastreuse update code in inet_csk_get_port into a small helper function that can be called from other places. Acked-by: Matthieu Baerts Signed-off-by: Tim Froidcoeur Signed-off-by: David S. Miller Signed-off-by: Tim

[PATCH 4.4 2/2] net: initialize fastreuse on inet_inherit_port

2020-09-02 Thread Tim Froidcoeur
create a new bind_bucket or use a different bind_bucket than the one of the listen socket. Fixes: 093d282321da ("tproxy: fix hash locking issue when using port redirection in __inet_inherit_port()") Acked-by: Matthieu Baerts Signed-off-by: Tim Froidcoeur Signed-off-by: David S. Miller Sig

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

2020-09-02 Thread Tim Froidcoeur
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

[PATCH 4.9 2/2] net: initialize fastreuse on inet_inherit_port

2020-09-02 Thread Tim Froidcoeur
create a new bind_bucket or use a different bind_bucket than the one of the listen socket. Fixes: 093d282321da ("tproxy: fix hash locking issue when using port redirection in __inet_inherit_port()") Acked-by: Matthieu Baerts Signed-off-by: Tim Froidcoeur Signed-off-by: David S. Miller Sig

[PATCH net v4 2/2] net: initialize fastreuse on inet_inherit_port

2020-08-11 Thread Tim Froidcoeur
one of the listen socket. Fixes: 093d282321da ("tproxy: fix hash locking issue when using port redirection in __inet_inherit_port()") Acked-by: Matthieu Baerts Signed-off-by: Tim Froidcoeur --- net/ipv4/inet_hashtables.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH net v4 1/2] net: refactor bind_bucket fastreuse into helper

2020-08-11 Thread Tim Froidcoeur
Refactor the fastreuse update code in inet_csk_get_port into a small helper function that can be called from other places. Acked-by: Matthieu Baerts Signed-off-by: Tim Froidcoeur --- include/net/inet_connection_sock.h | 4 ++ net/ipv4/inet_connection_sock.c| 97

[PATCH net v4 0/2] net: initialize fastreuse on inet_inherit_port

2020-08-11 Thread Tim Froidcoeur
unnecessary cast 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| 97 -- net/ipv4/inet_hashtables.c | 1 + 3 files

[PATCH net v3 0/2] net: initialize fastreuse on inet_inherit_port

2020-08-06 Thread Tim Froidcoeur
easier to understand. Patch 2/2 calls this new helper when __inet_inherit_port decides to create a new bind_bucket or use a different bind_bucket than the one of the listen socket. v3: - remove company disclaimer from automatic signature v2: - remove unnecessary cast Tim Froidcoeur (2): net

[PATCH net v3 1/2] net: refactor bind_bucket fastreuse into helper

2020-08-06 Thread Tim Froidcoeur
Refactor the fastreuse update code in inet_csk_get_port into a small helper function that can be called from other places. Acked-by: Matthieu Baerts Signed-off-by: Tim Froidcoeur --- Notes: v2: - remove unnecessary cast (Matt) include/net/inet_connection_sock.h | 4 ++ net/ipv4

[PATCH net v3 2/2] net: initialize fastreuse on inet_inherit_port

2020-08-06 Thread Tim Froidcoeur
one of the listen socket. Fixes: 093d282321da ("tproxy: fix hash locking issue when using port redirection in __inet_inherit_port()") Acked-by: Matthieu Baerts Signed-off-by: Tim Froidcoeur --- net/ipv4/inet_hashtables.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH net v2 2/2] net: initialize fastreuse on inet_inherit_port

2020-08-06 Thread Tim Froidcoeur
one of the listen socket. Fixes: 093d282321da ("tproxy: fix hash locking issue when using port redirection in __inet_inherit_port()") Acked-by: Matthieu Baerts Signed-off-by: Tim Froidcoeur --- net/ipv4/inet_hashtables.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH net v2 1/2] net: refactor bind_bucket fastreuse into helper

2020-08-06 Thread Tim Froidcoeur
Refactor the fastreuse update code in inet_csk_get_port into a small helper function that can be called from other places. Acked-by: Matthieu Baerts Signed-off-by: Tim Froidcoeur --- Notes: - remove unnecessary cast (Matt) include/net/inet_connection_sock.h | 4 ++ net/ipv4

[PATCH net 2/2] net: initialize fastreuse on inet_inherit_port

2020-08-05 Thread Tim Froidcoeur
one of the listen socket. Fixes: 093d282321da ("tproxy: fix hash locking issue when using port redirection in __inet_inherit_port()") Acked-by: Matthieu Baerts Signed-off-by: Tim Froidcoeur --- net/ipv4/inet_hashtables.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH net 0/2] net: initialize fastreuse on inet_inherit_port

2020-08-05 Thread Tim Froidcoeur
easier to understand. Patch 2/2 calls this new helper when __inet_inherit_port decides to create a new bind_bucket or use a different bind_bucket than the one of the listen socket. Tim Froidcoeur (2): net: refactor bind_bucket fastreuse into helper net: initialize fastreuse on inet_inherit_port

[PATCH net 1/2] net: refactor bind_bucket fastreuse into helper

2020-08-05 Thread Tim Froidcoeur
Refactor the fastreuse update code in inet_csk_get_port into a small helper function that can be called from other places. Acked-by: Matthieu Baerts Signed-off-by: Tim Froidcoeur --- include/net/inet_connection_sock.h | 4 ++ net/ipv4/inet_connection_sock.c| 99

Re: [PATCH 4.14] tcp: fix tcp_rtx_queue_tail in case of empty retransmit queue

2019-09-02 Thread Tim Froidcoeur
!= tcp_rtx_queue_head(sk) && > > skb != tcp_rtx_queue_tail(sk))) { > > NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPWQUEUETOOBIG); > > return -ENOMEM; > > } > > > > Can you try to reproduce it with

[PATCH 4.14] tcp: fix tcp_rtx_queue_tail in case of empty retransmit queue

2019-08-23 Thread Tim Froidcoeur
s when the retransmit queue is empty, for example in case of a zero window. Patch is needed for 4.4, 4.9 and 4.14 stable branches. Fixes: 8c3088f895a0 ("tcp: be more careful in tcp_fragment()") Change-Id: I839bde7167ae59e2f7d916c913507372445765c5 Signed-off-by: Tim Froidcoeur Signed-off

[PATCH] tcp: fix tcp_rtx_queue_tail in case of empty retransmit queue

2019-08-23 Thread Tim Froidcoeur
s when the retransmit queue is empty, for example in case of a zero window. Patch is needed for 4.4, 4.9 and 4.14 stable branches. Fixes: 8c3088f895a0 ("tcp: be more careful in tcp_fragment()") Signed-off-by: Tim Froidcoeur Signed-off-by: Matthieu Baerts --- include/net/tcp.h | 4 +++