diff options
author | LUU Duc Canh <canh.d.luu@dektech.com.au> | 2018-11-10 14:23:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-11 09:57:46 -0800 |
commit | 31c4f4cc32f7ba956dbeb0eb2208f1bda2468704 (patch) | |
tree | 9002c2f153d74232a92854bbb15c894a765b8242 /net/tipc/msg.h | |
parent | bb5e6a82904551731c7d0f83f0c7cdbffebcd48b (diff) | |
download | linux-31c4f4cc32f7ba956dbeb0eb2208f1bda2468704.tar.bz2 |
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>
Diffstat (limited to 'net/tipc/msg.h')
-rw-r--r-- | net/tipc/msg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index a2879e6ec5b6..a0924956bb61 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h @@ -105,6 +105,7 @@ struct tipc_skb_cb { u32 bytes_read; u32 orig_member; struct sk_buff *tail; + unsigned long nxt_retr; bool validated; u16 chain_imp; u16 ackers; |