OSDN Git Service

tipc: improve broadcast retransmission algorithm
authorLUU Duc Canh <canh.d.luu@dektech.com.au>
Sat, 10 Nov 2018 19:23:50 +0000 (14:23 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2018 17:57:46 +0000 (09:57 -0800)
commit31c4f4cc32f7ba956dbeb0eb2208f1bda2468704
tree9002c2f153d74232a92854bbb15c894a765b8242
parentbb5e6a82904551731c7d0f83f0c7cdbffebcd48b
tipc: improve broadcast retransmission algorithm

Currently, the broadcast retransmission algorithm is using the
'prev_retr' field in struct tipc_link to time stamp the latest broadcast
retransmission occasion. This helps to restrict retransmission of
individual broadcast packets to max once per 10 milliseconds, even
though all other criteria for retransmission are met.

We now move this time stamp to the control block of each individual
packet, and remove other limiting criteria. This simplifies the
retransmission algorithm, and eliminates any risk of logical errors
in selecting which packets can be retransmitted.

Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: LUU Duc Canh <canh.d.luu@dektech.com.au>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/link.c
net/tipc/msg.h