aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_stacks/tcp_bbr.h
diff options
context:
space:
mode:
authorRandall Stewart <rrs@FreeBSD.org>2019-12-17 16:08:07 +0000
committerRandall Stewart <rrs@FreeBSD.org>2019-12-17 16:08:07 +0000
commit1cf55767b800492f15d2d49884f78f05506049c0 (patch)
tree0d634265921d2276fbd6722431a2e137e2b29851 /sys/netinet/tcp_stacks/tcp_bbr.h
parentc7b0edf219290a9a77a4c59987b5783061ae19c9 (diff)
downloadsrc-1cf55767b800492f15d2d49884f78f05506049c0.tar.gz
src-1cf55767b800492f15d2d49884f78f05506049c0.zip
This commit is a bit of a re-arrange of deck chairs. It
gets both rack and bbr ready for the completion of the STATs framework in FreeBSD. For now if you don't have both NF_stats and stats on it disables them. As soon as the rest of the stats framework lands we can remove that restriction and then just uses stats when defined. Sponsored by: Netflix Inc. Differential Revision: https://reviews.freebsd.org/D22479
Notes
Notes: svn path=/head/; revision=355859
Diffstat (limited to 'sys/netinet/tcp_stacks/tcp_bbr.h')
-rw-r--r--sys/netinet/tcp_stacks/tcp_bbr.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/netinet/tcp_stacks/tcp_bbr.h b/sys/netinet/tcp_stacks/tcp_bbr.h
index f09e25a18390..98fcb69f9684 100644
--- a/sys/netinet/tcp_stacks/tcp_bbr.h
+++ b/sys/netinet/tcp_stacks/tcp_bbr.h
@@ -128,12 +128,6 @@ TAILQ_HEAD(bbr_head, bbr_sendmap);
* an clear to start measuring */
#define BBR_RED_BW_PE_NOEARLY_OUT 7 /* Set pkt epoch judged that we do not
* get out of jail early */
-/* codes for just-return */
-#define BBR_JR_SENT_DATA 0
-#define BBR_JR_CWND_LIMITED 1
-#define BBR_JR_RWND_LIMITED 2
-#define BBR_JR_APP_LIMITED 3
-#define BBR_JR_ASSESSING 4
/* For calculating a rate */
#define BBR_CALC_BW 1
#define BBR_CALC_LOSS 2
@@ -385,13 +379,6 @@ struct bbr_log_sysctl_out {
#define BBR_BIG_LOG_SIZE 300000
-/* Bits per second in bytes per second */
-#define FORTY_EIGHT_MBPS 6000000 /* 48 megabits in bytes */
-#define THIRTY_MBPS 3750000 /* 30 megabits in bytes */
-#define TWENTY_THREE_MBPS 2896000
-#define FIVETWELVE_MBPS 64000000 /* 512 megabits in bytes */
-#define ONE_POINT_TWO_MEG 150000 /* 1.2 megabits in bytes */
-
struct bbr_stats {
uint64_t bbr_badfr; /* 0 */
uint64_t bbr_badfr_bytes; /* 1 */