]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: use sk_rcvbuf as start for rmb creation
authorUrsula Braun <ursula.braun@de.ibm.com>
Tue, 21 Nov 2017 12:23:53 +0000 (13:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Nov 2017 16:33:34 +0000 (01:33 +0900)
commit7da1b94352dff67a0c22e33ced9488b9b416fd7c
tree27cadda81885b9034a7f52bd4407d9a4ca106962
parent7a9da87db6fa86ee10bff43c2c6600c39bcc6d16
net/smc: use sk_rcvbuf as start for rmb creation

Commit 47f3c5a9bb7c ("net/smc: common functions for RMBs and send buffers")
merged handling of SMC receive and send buffers. It introduced sk_buf_size
as merged start value for size determination. But since sk_buf_size is not
used at all, sk_sndbuf is erroneously used as start for rmb creation.
This patch makes sure, sk_buf_size is really used as intended, and
sk_rcvbuf is used as start value for rmb creation.

Fixes: 47f3c5a9bb7c ("net/smc: common functions for RMBs and send buffers")
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Reviewed-by: Hans Wippel <hwippel@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c