]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - include/net/sctp/structs.h
sctp: reuse sent_count to avoid retransmitted chunks for RTT measurements
authorXin Long <lucien.xin@gmail.com>
Sat, 8 Oct 2016 03:36:05 +0000 (11:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2016 13:44:13 +0000 (09:44 -0400)
commitcc6ac9bccf6b9814d37932e86a92f8e6a92960dc
treeac905a2010a6d2835d5bbea5e2541c590190aaf4
parent0f505b1ae6794242240e40f7904c8b345fa38c41
sctp: reuse sent_count to avoid retransmitted chunks for RTT measurements

Now sctp uses chunk->resent to record if a chunk is retransmitted, for
RTT measurements with retransmitted DATA chunks. chunk->sent_count was
introduced to record how many times one chunk has been sent for prsctp
RTX policy before. We actually can know if one chunk is retransmitted
by checking chunk->sent_count is greater than 1.

This patch is to remove resent from sctp_chunk and reuse sent_count
to avoid retransmitted chunks for RTT measurements.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
net/sctp/output.c
net/sctp/outqueue.c