tcp_bbr: fix bbr pacing rate for internal pacing
authorEric Dumazet <edumazet@google.com>
Wed, 20 Jun 2018 20:07:35 +0000 (16:07 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Jun 2018 04:59:22 +0000 (13:59 +0900)
commitcadefe5f584abaac40dce72009e4de738cbff467
tree1b40f040d84e576d231826bd19593918eb597d86
parent3f484a6e766740c9cb89cf576fdceeec49e221fd
tcp_bbr: fix bbr pacing rate for internal pacing

This commit makes BBR use only the MSS (without any headers) to
calculate pacing rates when internal TCP-layer pacing is used.

This is necessary to achieve the correct pacing behavior in this case,
since tcp_internal_pacing() uses only the payload length to calculate
pacing delays.

Signed-off-by: Kevin Yang <yyd@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_bbr.c
net/ipv4/tcp_output.c