tipc: Prevent loss of fragmented messages over unicast links
authorAllan Stephens <allan.stephens@windriver.com>
Thu, 27 Oct 2011 20:31:26 +0000 (16:31 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 6 Feb 2012 21:59:19 +0000 (16:59 -0500)
commitb76b27cad5ade1d483d4b94df6b35976bccf1055
tree1f7bd0490d6cdacff0411d3fc2ab5cfab11cf9ba
parent1ec2bb08407b377e5954b3f9479c2bf67fc925a9
tipc: Prevent loss of fragmented messages over unicast links

Modifies unicast link endpoint logic so an incoming fragmented message
is not lost if reassembly cannot begin because there is no buffer big
enough to hold the entire reassembled message. The link endpoint now
ignores the first fragment completely, which causes the sending node to
retransmit the first fragment so that reassembly can be re-attempted.

Previously, the sender would have had no reason to retransmit the 1st
fragment, so we would never have a chance to re-try the allocation.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
net/tipc/link.c