diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sysctl.h | 1 | ||||
-rw-r--r-- | include/net/tcp.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index d98562f1df76..28a48279654d 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h | |||
@@ -426,6 +426,7 @@ enum | |||
426 | NET_CIPSOV4_CACHE_BUCKET_SIZE=119, | 426 | NET_CIPSOV4_CACHE_BUCKET_SIZE=119, |
427 | NET_CIPSOV4_RBM_OPTFMT=120, | 427 | NET_CIPSOV4_RBM_OPTFMT=120, |
428 | NET_CIPSOV4_RBM_STRICTVALID=121, | 428 | NET_CIPSOV4_RBM_STRICTVALID=121, |
429 | NET_TCP_AVAIL_CONG_CONTROL=122, | ||
429 | }; | 430 | }; |
430 | 431 | ||
431 | enum { | 432 | enum { |
diff --git a/include/net/tcp.h b/include/net/tcp.h index 246916c2321e..6af4baf5b769 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -620,6 +620,9 @@ enum tcp_ca_event { | |||
620 | * Interface for adding new TCP congestion control handlers | 620 | * Interface for adding new TCP congestion control handlers |
621 | */ | 621 | */ |
622 | #define TCP_CA_NAME_MAX 16 | 622 | #define TCP_CA_NAME_MAX 16 |
623 | #define TCP_CA_MAX 128 | ||
624 | #define TCP_CA_BUF_MAX (TCP_CA_NAME_MAX*TCP_CA_MAX) | ||
625 | |||
623 | struct tcp_congestion_ops { | 626 | struct tcp_congestion_ops { |
624 | struct list_head list; | 627 | struct list_head list; |
625 | 628 | ||
@@ -659,6 +662,7 @@ extern void tcp_init_congestion_control(struct sock *sk); | |||
659 | extern void tcp_cleanup_congestion_control(struct sock *sk); | 662 | extern void tcp_cleanup_congestion_control(struct sock *sk); |
660 | extern int tcp_set_default_congestion_control(const char *name); | 663 | extern int tcp_set_default_congestion_control(const char *name); |
661 | extern void tcp_get_default_congestion_control(char *name); | 664 | extern void tcp_get_default_congestion_control(char *name); |
665 | extern void tcp_get_available_congestion_control(char *buf, size_t len); | ||
662 | extern int tcp_set_congestion_control(struct sock *sk, const char *name); | 666 | extern int tcp_set_congestion_control(struct sock *sk, const char *name); |
663 | extern void tcp_slow_start(struct tcp_sock *tp); | 667 | extern void tcp_slow_start(struct tcp_sock *tp); |
664 | 668 | ||