All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2] net/rds: correct socket tunable error in rds_tcp_tune()
@ 2021-12-01 14:45 William Kucharski
  2021-12-01 15:42 ` Santosh Shilimkar
  2021-12-02 12:20 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: William Kucharski @ 2021-12-01 14:45 UTC (permalink / raw)
  To: netdev, linux-rdma, rds-devel, linux-kernel
  Cc: Santosh Shilimkar, David S . Miller, Jakub Kicinski

Correct an error where setting /proc/sys/net/rds/tcp/rds_tcp_rcvbuf would
instead modify the socket's sk_sndbuf and would leave sk_rcvbuf untouched.

Fixes: c6a58ffed536 ("RDS: TCP: Add sysctl tunables for sndbuf/rcvbuf on rds-tcp socket")
Signed-off-by: William Kucharski <william.kucharski@oracle.com>
---
V2: Add Fixes tag to refer to original commit that introduced the issue

 net/rds/tcp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/rds/tcp.c b/net/rds/tcp.c
index abf19c0e3ba0..5327d130c4b5 100644
--- a/net/rds/tcp.c
+++ b/net/rds/tcp.c
@@ -500,7 +500,7 @@ void rds_tcp_tune(struct socket *sock)
 		sk->sk_userlocks |= SOCK_SNDBUF_LOCK;
 	}
 	if (rtn->rcvbuf_size > 0) {
-		sk->sk_sndbuf = rtn->rcvbuf_size;
+		sk->sk_rcvbuf = rtn->rcvbuf_size;
 		sk->sk_userlocks |= SOCK_RCVBUF_LOCK;
 	}
 	release_sock(sk);
-- 
2.33.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH V2] net/rds: correct socket tunable error in rds_tcp_tune()
  2021-12-01 14:45 [PATCH V2] net/rds: correct socket tunable error in rds_tcp_tune() William Kucharski
@ 2021-12-01 15:42 ` Santosh Shilimkar
  2021-12-02 12:20 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Santosh Shilimkar @ 2021-12-01 15:42 UTC (permalink / raw)
  To: William Kucharski
  Cc: netdev, linux-rdma, rds-devel, linux-kernel, David S . Miller,
	Jakub Kicinski


> On Dec 1, 2021, at 6:45 AM, William Kucharski <william.kucharski@oracle.com> wrote:
> 
> Correct an error where setting /proc/sys/net/rds/tcp/rds_tcp_rcvbuf would
> instead modify the socket's sk_sndbuf and would leave sk_rcvbuf untouched.
> 
> Fixes: c6a58ffed536 ("RDS: TCP: Add sysctl tunables for sndbuf/rcvbuf on rds-tcp socket")
> Signed-off-by: William Kucharski <william.kucharski@oracle.com>
> ---
> V2: Add Fixes tag to refer to original commit that introduced the issue

Good catch.

Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH V2] net/rds: correct socket tunable error in rds_tcp_tune()
  2021-12-01 14:45 [PATCH V2] net/rds: correct socket tunable error in rds_tcp_tune() William Kucharski
  2021-12-01 15:42 ` Santosh Shilimkar
@ 2021-12-02 12:20 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-12-02 12:20 UTC (permalink / raw)
  To: William Kucharski
  Cc: netdev, linux-rdma, rds-devel, linux-kernel, santosh.shilimkar,
	davem, kuba

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <davem@davemloft.net>:

On Wed,  1 Dec 2021 07:45:22 -0700 you wrote:
> Correct an error where setting /proc/sys/net/rds/tcp/rds_tcp_rcvbuf would
> instead modify the socket's sk_sndbuf and would leave sk_rcvbuf untouched.
> 
> Fixes: c6a58ffed536 ("RDS: TCP: Add sysctl tunables for sndbuf/rcvbuf on rds-tcp socket")
> Signed-off-by: William Kucharski <william.kucharski@oracle.com>
> ---
> V2: Add Fixes tag to refer to original commit that introduced the issue
> 
> [...]

Here is the summary with links:
  - [V2] net/rds: correct socket tunable error in rds_tcp_tune()
    https://git.kernel.org/netdev/net/c/19f36edf14bc

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-02 12:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-01 14:45 [PATCH V2] net/rds: correct socket tunable error in rds_tcp_tune() William Kucharski
2021-12-01 15:42 ` Santosh Shilimkar
2021-12-02 12:20 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.