OSDN Git Service

tcp_bbr: add bbr_check_probe_rtt_done() helper
authorKevin Yang <yyd@google.com>
Wed, 22 Aug 2018 21:43:14 +0000 (17:43 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Aug 2018 04:45:32 +0000 (21:45 -0700)
commitfb99886224294b2291d267da41395022fa4200e2
tree5830e096f7e98a9033c37ef4d1d1dac8221e685e
parent431280eebed9f5079553daf003011097763e71fd
tcp_bbr: add bbr_check_probe_rtt_done() helper

This patch add a helper function bbr_check_probe_rtt_done() to
  1. check the condition to see if bbr should exit probe_rtt mode;
  2. process the logic of exiting probe_rtt mode.

Fixes: 0f8782ea1497 ("tcp_bbr: add BBR congestion control")
Signed-off-by: Kevin Yang <yyd@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Reviewed-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_bbr.c