From: Stephen Hemminger Date: Thu, 1 Dec 2016 18:52:30 +0000 (-0800) Subject: Update kernel headers for XDP and tcp_info X-Git-Tag: v4.10.0~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf9a0aff363a5a6a28a0c50ac9b1b94d0ec48309;p=thirdparty%2Fiproute2.git Update kernel headers for XDP and tcp_info Signed-off-by: Stephen Hemminger --- diff --git a/include/linux/if_link.h b/include/linux/if_link.h index 5a89dcdd8..44224740c 100644 --- a/include/linux/if_link.h +++ b/include/linux/if_link.h @@ -874,10 +874,14 @@ enum { /* XDP section */ +#define XDP_FLAGS_UPDATE_IF_NOEXIST (1U << 0) +#define XDP_FLAGS_MASK (XDP_FLAGS_UPDATE_IF_NOEXIST) + enum { IFLA_XDP_UNSPEC, IFLA_XDP_FD, IFLA_XDP_ATTACHED, + IFLA_XDP_FLAGS, __IFLA_XDP_MAX, }; diff --git a/include/linux/tcp.h b/include/linux/tcp.h index cffa3bbee..646c488f9 100644 --- a/include/linux/tcp.h +++ b/include/linux/tcp.h @@ -214,6 +214,18 @@ struct tcp_info { __u32 tcpi_data_segs_out; /* RFC4898 tcpEStatsDataSegsOut */ __u64 tcpi_delivery_rate; + + __u64 tcpi_busy_time; /* Time (usec) busy sending data */ + __u64 tcpi_rwnd_limited; /* Time (usec) limited by receive window */ + __u64 tcpi_sndbuf_limited; /* Time (usec) limited by send buffer */ +}; + +/* netlink attributes types for SCM_TIMESTAMPING_OPT_STATS */ +enum { + TCP_NLA_PAD, + TCP_NLA_BUSY, /* Time (usec) busy sending data */ + TCP_NLA_RWND_LIMITED, /* Time (usec) limited by receive window */ + TCP_NLA_SNDBUF_LIMITED, /* Time (usec) limited by send buffer */ }; /* for TCP_MD5SIG socket option */