From 270763546a209688a3a74453d908017b71c58664 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 4 May 2015 09:04:59 -0700 Subject: [PATCH] update headers to 4.1-rc1 net-next --- include/linux/inet_diag.h | 4 ++++ include/linux/pkt_cls.h | 1 + include/linux/tcp.h | 3 +++ 3 files changed, 8 insertions(+) diff --git a/include/linux/inet_diag.h b/include/linux/inet_diag.h index 7438dad7..0fb76bb9 100644 --- a/include/linux/inet_diag.h +++ b/include/linux/inet_diag.h @@ -143,4 +143,8 @@ struct tcp_dctcp_info { __u32 dctcp_ab_tot; }; +union tcp_cc_info { + struct tcpvegas_info vegas; + struct tcp_dctcp_info dctcp; +}; #endif /* _INET_DIAG_H_ */ diff --git a/include/linux/pkt_cls.h b/include/linux/pkt_cls.h index bf08e76b..5674737f 100644 --- a/include/linux/pkt_cls.h +++ b/include/linux/pkt_cls.h @@ -35,6 +35,7 @@ bits 9,10,11: redirect counter - redirect TTL. Loop avoidance * * */ +/* backwards compat for userspace only */ #define TC_MUNGED _TC_MAKEMASK1(0) #define SET_TC_MUNGED(v) ( TC_MUNGED | (v & ~TC_MUNGED)) #define CLR_TC_MUNGED(v) ( v & ~TC_MUNGED) diff --git a/include/linux/tcp.h b/include/linux/tcp.h index f96e0158..1e002563 100644 --- a/include/linux/tcp.h +++ b/include/linux/tcp.h @@ -112,6 +112,7 @@ enum { #define TCP_FASTOPEN 23 /* Enable FastOpen on listeners */ #define TCP_TIMESTAMP 24 #define TCP_NOTSENT_LOWAT 25 /* limit number of unsent bytes in write queue */ +#define TCP_CC_INFO 26 /* Get Congestion Control (optional) info */ struct tcp_repair_opt { __u32 opt_code; @@ -189,6 +190,8 @@ struct tcp_info { __u64 tcpi_pacing_rate; __u64 tcpi_max_pacing_rate; + __u64 tcpi_bytes_acked; /* RFC4898 tcpEStatsAppHCThruOctetsAcked */ + __u64 tcpi_bytes_received; /* RFC4898 tcpEStatsAppHCThruOctetsReceived */ }; /* for TCP_MD5SIG socket option */