]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1bb543e2adda03cd23eed2d6ddc5cdac9481878c
tree9002c2f153d74232a92854bbb15c894a765b8242
parent713a11178788630be0ff7af3957896cd3397ba5b
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