diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2011-04-17 17:06:23 (GMT) |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-05-10 20:03:49 (GMT) |
commit | 77561557447d3be586e701815e261c93c11ded00 (patch) | |
tree | fcd67619694aac500aa3c9761bd16883437869a2 /net/tipc/core.c | |
parent | e0f085964cac97a3a9e47741365ef6a03e500873 (diff) | |
download | linux-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