From: Stephen Hemminger Date: Mon, 4 May 2015 16:04:59 +0000 (-0700) Subject: update headers to 4.1-rc1 net-next X-Git-Tag: v4.2.0~73^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=270763546a209688a3a74453d908017b71c58664;p=thirdparty%2Fiproute2.git update headers to 4.1-rc1 net-next --- diff --git a/include/linux/inet_diag.h b/include/linux/inet_diag.h index 7438dad7b..0fb76bb95 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 bf08e76bf..5674737f9 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 f96e01584..1e002563b 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 */