]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
Update kernel headers for XDP and tcp_info
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 1 Dec 2016 18:52:30 +0000 (10:52 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 1 Dec 2016 18:52:30 +0000 (10:52 -0800)
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
include/linux/if_link.h
include/linux/tcp.h

index 5a89dcdd8128daa1fb0432661b2845fdb8149933..44224740c0f065b27908c037f949a2b826e60ae0 100644 (file)
@@ -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,
 };
 
index cffa3bbeeda416fa9c32aa09576bc6cfc6317eb6..646c488f97c8dedb582ad8a8b38be5206ae05217 100644 (file)
@@ -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 */