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>
This commit is contained in:

committed by
David S. Miller

parent
bb5e6a8290
commit
31c4f4cc32
@@ -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;
|
||||
|
Reference in New Issue
Block a user