https://github.com/torvalds/linux
Revision 3364d61c92ecca7a8da990659c4b0ae1fcf0fcfb authored by Parthasarathy Bhuvaragan on 24 April 2017, 13:00:42 UTC, committed by David S. Miller on 25 April 2017, 15:45:37 UTC
Until now in tipc_send_stream(), we return -1 when the socket
encounters link congestion even if the socket had successfully
sent partial data. This is incorrect as the application resends
the same the partial data leading to data corruption at
receiver's end.

In this commit, we return the partially sent bytes as the return
value at link congestion.

Fixes: 10724cc7bb78 ("tipc: redesign connection-level flow control")
Signed-off-by: Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent b7d6df5
History
Tip revision: 3364d61c92ecca7a8da990659c4b0ae1fcf0fcfb authored by Parthasarathy Bhuvaragan on 24 April 2017, 13:00:42 UTC
tipc: fix socket flow control accounting error at tipc_send_stream
Tip revision: 3364d61
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitattributes -rw-r--r-- 30 bytes
.gitignore -rw-r--r-- 1.3 KB
.mailmap -rw-r--r-- 7.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 96.0 KB
Kbuild -rw-r--r-- 2.8 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 389.8 KB
Makefile -rw-r--r-- 57.8 KB
README -rw-r--r-- 722 bytes

README

back to top