summaryrefslogtreecommitdiff
path: root/net/tipc/core.c
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2011-04-17 17:06:23 (GMT)
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-05-10 20:03:49 (GMT)
commit77561557447d3be586e701815e261c93c11ded00 (patch)
treefcd67619694aac500aa3c9761bd16883437869a2 /net/tipc/core.c
parente0f085964cac97a3a9e47741365ef6a03e500873 (diff)
downloadlinux-fsl-qoriq-77561557447d3be586e701815e261c93c11ded00.tar.xz
tipc: Fix issues with fragmentation of an existing message buffer
Modifies the routine that fragments an existing message buffer to use similar logic to that used when generating fragments from an iovec. The routine now creates a complete chain of fragments and adds them to the link transmit queue as a unit, so that the link sends all fragments or none; this prevents the incomplete transmission of a fragmented message that might otherwise result because of link congestion or memory exhaustion. This change also ensures that the counter recording the number of fragmented messages sent by the link is now incremented only if the message is actually sent. Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/core.c')
0 files changed, 0 insertions, 0 deletions