naccyde / rpms / iproute

Forked from rpms/iproute 5 months ago
Clone

Blame SOURCES/0002-Update-kernel-headers.patch

b36e24
From 864c5a906ccfe205f886aa4bfb69f738a9a4fb45 Mon Sep 17 00:00:00 2001
b36e24
From: Andrea Claudi <aclaudi@redhat.com>
b36e24
Date: Thu, 16 Apr 2020 12:41:49 +0200
b36e24
Subject: [PATCH] Update kernel headers
b36e24
b36e24
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1770671
b36e24
Upstream Status: iproute2.git commit 17a948c80af57
b36e24
b36e24
commit 17a948c80af57da2fa86a8e34153f755f86e9c9c
b36e24
Author: David Ahern <dsahern@gmail.com>
b36e24
Date:   Sat Nov 2 07:43:01 2019 -0700
b36e24
b36e24
    Update kernel headers
b36e24
b36e24
    Update kernel headers to commit:
b36e24
        c23fcbbc6aa4 ("tc-testing: added tests with cookie for conntrack TC action")
b36e24
b36e24
    Signed-off-by: David Ahern <dsahern@gmail.com>
b36e24
---
b36e24
 include/uapi/linux/bpf.h     | 28 +++++++++++++++++++++++++++-
b36e24
 include/uapi/linux/pkt_cls.h |  5 +++++
b36e24
 include/uapi/linux/tcp.h     | 10 +++++++++-
b36e24
 include/uapi/linux/tipc.h    |  1 +
b36e24
 4 files changed, 42 insertions(+), 2 deletions(-)
b36e24
b36e24
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
b36e24
index 79701d3e66f0b..3e195ff43fa01 100644
b36e24
--- a/include/uapi/linux/bpf.h
b36e24
+++ b/include/uapi/linux/bpf.h
b36e24
@@ -413,6 +413,7 @@ union bpf_attr {
b36e24
 		__u32		line_info_rec_size;	/* userspace bpf_line_info size */
b36e24
 		__aligned_u64	line_info;	/* line info */
b36e24
 		__u32		line_info_cnt;	/* number of bpf_line_info records */
b36e24
+		__u32		attach_btf_id;	/* in-kernel BTF type id to attach to */
b36e24
 	};
b36e24
 
b36e24
 	struct { /* anonymous struct used by BPF_OBJ_* commands */
b36e24
@@ -2741,6 +2742,30 @@ union bpf_attr {
b36e24
  *		**-EOPNOTSUPP** kernel configuration does not enable SYN cookies
b36e24
  *
b36e24
  *		**-EPROTONOSUPPORT** IP packet version is not 4 or 6
b36e24
+ *
b36e24
+ * int bpf_skb_output(void *ctx, struct bpf_map *map, u64 flags, void *data, u64 size)
b36e24
+ * 	Description
b36e24
+ * 		Write raw *data* blob into a special BPF perf event held by
b36e24
+ * 		*map* of type **BPF_MAP_TYPE_PERF_EVENT_ARRAY**. This perf
b36e24
+ * 		event must have the following attributes: **PERF_SAMPLE_RAW**
b36e24
+ * 		as **sample_type**, **PERF_TYPE_SOFTWARE** as **type**, and
b36e24
+ * 		**PERF_COUNT_SW_BPF_OUTPUT** as **config**.
b36e24
+ *
b36e24
+ * 		The *flags* are used to indicate the index in *map* for which
b36e24
+ * 		the value must be put, masked with **BPF_F_INDEX_MASK**.
b36e24
+ * 		Alternatively, *flags* can be set to **BPF_F_CURRENT_CPU**
b36e24
+ * 		to indicate that the index of the current CPU core should be
b36e24
+ * 		used.
b36e24
+ *
b36e24
+ * 		The value to write, of *size*, is passed through eBPF stack and
b36e24
+ * 		pointed by *data*.
b36e24
+ *
b36e24
+ * 		*ctx* is a pointer to in-kernel struct sk_buff.
b36e24
+ *
b36e24
+ * 		This helper is similar to **bpf_perf_event_output**\ () but
b36e24
+ * 		restricted to raw_tracepoint bpf programs.
b36e24
+ * 	Return
b36e24
+ * 		0 on success, or a negative error in case of failure.
b36e24
  */
b36e24
 #define __BPF_FUNC_MAPPER(FN)		\
b36e24
 	FN(unspec),			\
b36e24
@@ -2853,7 +2878,8 @@ union bpf_attr {
b36e24
 	FN(sk_storage_get),		\
b36e24
 	FN(sk_storage_delete),		\
b36e24
 	FN(send_signal),		\
b36e24
-	FN(tcp_gen_syncookie),
b36e24
+	FN(tcp_gen_syncookie),		\
b36e24
+	FN(skb_output),
b36e24
 
b36e24
 /* integer value in 'imm' field of BPF_CALL instruction selects which helper
b36e24
  * function eBPF program intends to call
b36e24
diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h
b36e24
index b057aeeb63386..0a9ab625cba7b 100644
b36e24
--- a/include/uapi/linux/pkt_cls.h
b36e24
+++ b/include/uapi/linux/pkt_cls.h
b36e24
@@ -16,9 +16,14 @@ enum {
b36e24
 	TCA_ACT_STATS,
b36e24
 	TCA_ACT_PAD,
b36e24
 	TCA_ACT_COOKIE,
b36e24
+	TCA_ACT_FLAGS,
b36e24
 	__TCA_ACT_MAX
b36e24
 };
b36e24
 
b36e24
+#define TCA_ACT_FLAGS_NO_PERCPU_STATS 1 /* Don't use percpu allocator for
b36e24
+					 * actions stats.
b36e24
+					 */
b36e24
+
b36e24
 #define TCA_ACT_MAX __TCA_ACT_MAX
b36e24
 #define TCA_OLD_COMPAT (TCA_ACT_MAX+1)
b36e24
 #define TCA_ACT_MAX_PRIO 32
b36e24
diff --git a/include/uapi/linux/tcp.h b/include/uapi/linux/tcp.h
b36e24
index 3fd9b29146b17..acb15ca8558c0 100644
b36e24
--- a/include/uapi/linux/tcp.h
b36e24
+++ b/include/uapi/linux/tcp.h
b36e24
@@ -155,6 +155,14 @@ enum {
b36e24
 	TCP_QUEUES_NR,
b36e24
 };
b36e24
 
b36e24
+/* why fastopen failed from client perspective */
b36e24
+enum tcp_fastopen_client_fail {
b36e24
+	TFO_STATUS_UNSPEC, /* catch-all */
b36e24
+	TFO_COOKIE_UNAVAILABLE, /* if not in TFO_CLIENT_NO_COOKIE mode */
b36e24
+	TFO_DATA_NOT_ACKED, /* SYN-ACK did not ack SYN data */
b36e24
+	TFO_SYN_RETRANSMITTED, /* SYN-ACK did not ack SYN data after timeout */
b36e24
+};
b36e24
+
b36e24
 /* for TCP_INFO socket option */
b36e24
 #define TCPI_OPT_TIMESTAMPS	1
b36e24
 #define TCPI_OPT_SACK		2
b36e24
@@ -211,7 +219,7 @@ struct tcp_info {
b36e24
 	__u8	tcpi_backoff;
b36e24
 	__u8	tcpi_options;
b36e24
 	__u8	tcpi_snd_wscale : 4, tcpi_rcv_wscale : 4;
b36e24
-	__u8	tcpi_delivery_rate_app_limited:1;
b36e24
+	__u8	tcpi_delivery_rate_app_limited:1, tcpi_fastopen_client_fail:2;
b36e24
 
b36e24
 	__u32	tcpi_rto;
b36e24
 	__u32	tcpi_ato;
b36e24
diff --git a/include/uapi/linux/tipc.h b/include/uapi/linux/tipc.h
b36e24
index e16cb4e2af587..0f6f28b2e3010 100644
b36e24
--- a/include/uapi/linux/tipc.h
b36e24
+++ b/include/uapi/linux/tipc.h
b36e24
@@ -191,6 +191,7 @@ struct sockaddr_tipc {
b36e24
 #define TIPC_GROUP_JOIN         135     /* Takes struct tipc_group_req* */
b36e24
 #define TIPC_GROUP_LEAVE        136     /* No argument */
b36e24
 #define TIPC_SOCK_RECVQ_USED    137     /* Default: none (read only) */
b36e24
+#define TIPC_NODELAY            138     /* Default: false */
b36e24
 
b36e24
 /*
b36e24
  * Flag values
b36e24
-- 
359b1d
2.25.4
b36e24