aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/msg.h
diff options
context:
space:
mode:
authorLUU Duc Canh <canh.d.luu@dektech.com.au>2018-11-10 14:23:50 -0500
committerDavid S. Miller <davem@davemloft.net>2018-11-11 09:57:46 -0800
commit31c4f4cc32f7ba956dbeb0eb2208f1bda2468704 (patch)
tree9002c2f153d74232a92854bbb15c894a765b8242 /net/tipc/msg.h
parentMerge branch 'net-sched-indirect-tc-block-cb-registration' (diff)
downloadlinux-dev-31c4f4cc32f7ba956dbeb0eb2208f1bda2468704.tar.xz
linux-dev-31c4f4cc32f7ba956dbeb0eb2208f1bda2468704.zip
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 '')
-rw-r--r--net/tipc/msg.h1
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;