|
|
07a51b |
From 98f0c643a333ff630407828f4141131502edc6f9 Mon Sep 17 00:00:00 2001
|
|
|
07a51b |
From: Andrea Claudi <aclaudi@redhat.com>
|
|
|
07a51b |
Date: Thu, 4 Jun 2020 19:26:50 +0200
|
|
|
07a51b |
Subject: [PATCH] Update kernel headers
|
|
|
07a51b |
|
|
|
07a51b |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1812207
|
|
|
07a51b |
Upstream Status: unknown commit 3d72f125c300d
|
|
|
07a51b |
|
|
|
07a51b |
commit 3d72f125c300dd261a5151cf1cac7cfa152376b2
|
|
|
07a51b |
Author: David Ahern <dsahern@gmail.com>
|
|
|
07a51b |
Date: Sun Sep 15 10:32:58 2019 -0700
|
|
|
07a51b |
|
|
|
07a51b |
Update kernel headers
|
|
|
07a51b |
|
|
|
07a51b |
Update kernel headers to commit:
|
|
|
07a51b |
aa2eaa8c272a ("Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net")
|
|
|
07a51b |
|
|
|
07a51b |
Signed-off-by: David Ahern <dsahern@gmail.com>
|
|
|
07a51b |
---
|
|
|
07a51b |
include/uapi/linux/bpf.h | 15 ++++++++++++---
|
|
|
07a51b |
include/uapi/linux/can.h | 20 +++++++++++++++++++-
|
|
|
07a51b |
include/uapi/linux/devlink.h | 11 +++++++++++
|
|
|
07a51b |
include/uapi/linux/inet_diag.h | 9 +++++++++
|
|
|
07a51b |
include/uapi/linux/pkt_cls.h | 2 ++
|
|
|
07a51b |
include/uapi/linux/sctp.h | 3 +++
|
|
|
07a51b |
6 files changed, 56 insertions(+), 4 deletions(-)
|
|
|
07a51b |
|
|
|
07a51b |
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
|
|
|
07a51b |
index 3e195ff43fa01..6d55239a4cc0f 100644
|
|
|
07a51b |
--- a/include/uapi/linux/bpf.h
|
|
|
07a51b |
+++ b/include/uapi/linux/bpf.h
|
|
|
07a51b |
@@ -106,6 +106,7 @@ enum bpf_cmd {
|
|
|
07a51b |
BPF_TASK_FD_QUERY,
|
|
|
07a51b |
BPF_MAP_LOOKUP_AND_DELETE_ELEM,
|
|
|
07a51b |
BPF_MAP_FREEZE,
|
|
|
07a51b |
+ BPF_BTF_GET_NEXT_ID,
|
|
|
07a51b |
};
|
|
|
07a51b |
|
|
|
07a51b |
enum bpf_map_type {
|
|
|
07a51b |
@@ -284,6 +285,9 @@ enum bpf_attach_type {
|
|
|
07a51b |
*/
|
|
|
07a51b |
#define BPF_F_TEST_RND_HI32 (1U << 2)
|
|
|
07a51b |
|
|
|
07a51b |
+/* The verifier internal test flag. Behavior is undefined */
|
|
|
07a51b |
+#define BPF_F_TEST_STATE_FREQ (1U << 3)
|
|
|
07a51b |
+
|
|
|
07a51b |
/* When BPF ldimm64's insn[0].src_reg != 0 then this can have
|
|
|
07a51b |
* two extensions:
|
|
|
07a51b |
*
|
|
|
07a51b |
@@ -337,6 +341,9 @@ enum bpf_attach_type {
|
|
|
07a51b |
#define BPF_F_RDONLY_PROG (1U << 7)
|
|
|
07a51b |
#define BPF_F_WRONLY_PROG (1U << 8)
|
|
|
07a51b |
|
|
|
07a51b |
+/* Clone map from listener for newly accepted socket */
|
|
|
07a51b |
+#define BPF_F_CLONE (1U << 9)
|
|
|
07a51b |
+
|
|
|
07a51b |
/* flags for BPF_PROG_QUERY */
|
|
|
07a51b |
#define BPF_F_QUERY_EFFECTIVE (1U << 0)
|
|
|
07a51b |
|
|
|
07a51b |
@@ -577,6 +584,8 @@ union bpf_attr {
|
|
|
07a51b |
* limited to five).
|
|
|
07a51b |
*
|
|
|
07a51b |
* Each time the helper is called, it appends a line to the trace.
|
|
|
07a51b |
+ * Lines are discarded while *\/sys/kernel/debug/tracing/trace* is
|
|
|
07a51b |
+ * open, use *\/sys/kernel/debug/tracing/trace_pipe* to avoid this.
|
|
|
07a51b |
* The format of the trace is customizable, and the exact output
|
|
|
07a51b |
* one will get depends on the options set in
|
|
|
07a51b |
* *\/sys/kernel/debug/tracing/trace_options* (see also the
|
|
|
07a51b |
@@ -1015,7 +1024,7 @@ union bpf_attr {
|
|
|
07a51b |
* The realm of the route for the packet associated to *skb*, or 0
|
|
|
07a51b |
* if none was found.
|
|
|
07a51b |
*
|
|
|
07a51b |
- * int bpf_perf_event_output(struct pt_reg *ctx, struct bpf_map *map, u64 flags, void *data, u64 size)
|
|
|
07a51b |
+ * int bpf_perf_event_output(struct pt_regs *ctx, struct bpf_map *map, u64 flags, void *data, u64 size)
|
|
|
07a51b |
* Description
|
|
|
07a51b |
* Write raw *data* blob into a special BPF perf event held by
|
|
|
07a51b |
* *map* of type **BPF_MAP_TYPE_PERF_EVENT_ARRAY**. This perf
|
|
|
07a51b |
@@ -1077,7 +1086,7 @@ union bpf_attr {
|
|
|
07a51b |
* Return
|
|
|
07a51b |
* 0 on success, or a negative error in case of failure.
|
|
|
07a51b |
*
|
|
|
07a51b |
- * int bpf_get_stackid(struct pt_reg *ctx, struct bpf_map *map, u64 flags)
|
|
|
07a51b |
+ * int bpf_get_stackid(struct pt_regs *ctx, struct bpf_map *map, u64 flags)
|
|
|
07a51b |
* Description
|
|
|
07a51b |
* Walk a user or a kernel stack and return its id. To achieve
|
|
|
07a51b |
* this, the helper needs *ctx*, which is a pointer to the context
|
|
|
07a51b |
@@ -1726,7 +1735,7 @@ union bpf_attr {
|
|
|
07a51b |
* Return
|
|
|
07a51b |
* 0 on success, or a negative error in case of failure.
|
|
|
07a51b |
*
|
|
|
07a51b |
- * int bpf_override_return(struct pt_reg *regs, u64 rc)
|
|
|
07a51b |
+ * int bpf_override_return(struct pt_regs *regs, u64 rc)
|
|
|
07a51b |
* Description
|
|
|
07a51b |
* Used for error injection, this helper uses kprobes to override
|
|
|
07a51b |
* the return value of the probed function, and to set it to *rc*.
|
|
|
07a51b |
diff --git a/include/uapi/linux/can.h b/include/uapi/linux/can.h
|
|
|
07a51b |
index 9009f0b6505cf..c61cdc7ad5cc6 100644
|
|
|
07a51b |
--- a/include/uapi/linux/can.h
|
|
|
07a51b |
+++ b/include/uapi/linux/can.h
|
|
|
07a51b |
@@ -157,7 +157,8 @@ struct canfd_frame {
|
|
|
07a51b |
#define CAN_TP20 4 /* VAG Transport Protocol v2.0 */
|
|
|
07a51b |
#define CAN_MCNET 5 /* Bosch MCNet */
|
|
|
07a51b |
#define CAN_ISOTP 6 /* ISO 15765-2 Transport Protocol */
|
|
|
07a51b |
-#define CAN_NPROTO 7
|
|
|
07a51b |
+#define CAN_J1939 7 /* SAE J1939 */
|
|
|
07a51b |
+#define CAN_NPROTO 8
|
|
|
07a51b |
|
|
|
07a51b |
#define SOL_CAN_BASE 100
|
|
|
07a51b |
|
|
|
07a51b |
@@ -174,6 +175,23 @@ struct sockaddr_can {
|
|
|
07a51b |
/* transport protocol class address information (e.g. ISOTP) */
|
|
|
07a51b |
struct { canid_t rx_id, tx_id; } tp;
|
|
|
07a51b |
|
|
|
07a51b |
+ /* J1939 address information */
|
|
|
07a51b |
+ struct {
|
|
|
07a51b |
+ /* 8 byte name when using dynamic addressing */
|
|
|
07a51b |
+ __u64 name;
|
|
|
07a51b |
+
|
|
|
07a51b |
+ /* pgn:
|
|
|
07a51b |
+ * 8 bit: PS in PDU2 case, else 0
|
|
|
07a51b |
+ * 8 bit: PF
|
|
|
07a51b |
+ * 1 bit: DP
|
|
|
07a51b |
+ * 1 bit: reserved
|
|
|
07a51b |
+ */
|
|
|
07a51b |
+ __u32 pgn;
|
|
|
07a51b |
+
|
|
|
07a51b |
+ /* 1 byte address */
|
|
|
07a51b |
+ __u8 addr;
|
|
|
07a51b |
+ } j1939;
|
|
|
07a51b |
+
|
|
|
07a51b |
/* reserved for future CAN protocols address information */
|
|
|
07a51b |
} can_addr;
|
|
|
07a51b |
};
|
|
|
07a51b |
diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
|
|
|
07a51b |
index 3fb683bee6ba1..79e1405db67cc 100644
|
|
|
07a51b |
--- a/include/uapi/linux/devlink.h
|
|
|
07a51b |
+++ b/include/uapi/linux/devlink.h
|
|
|
07a51b |
@@ -202,6 +202,15 @@ enum devlink_param_cmode {
|
|
|
07a51b |
enum devlink_param_fw_load_policy_value {
|
|
|
07a51b |
DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER,
|
|
|
07a51b |
DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH,
|
|
|
07a51b |
+ DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK,
|
|
|
07a51b |
+ DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_UNKNOWN,
|
|
|
07a51b |
+};
|
|
|
07a51b |
+
|
|
|
07a51b |
+enum devlink_param_reset_dev_on_drv_probe_value {
|
|
|
07a51b |
+ DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_UNKNOWN,
|
|
|
07a51b |
+ DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_ALWAYS,
|
|
|
07a51b |
+ DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_NEVER,
|
|
|
07a51b |
+ DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_DISK,
|
|
|
07a51b |
};
|
|
|
07a51b |
|
|
|
07a51b |
enum {
|
|
|
07a51b |
@@ -410,6 +419,8 @@ enum devlink_attr {
|
|
|
07a51b |
DEVLINK_ATTR_TRAP_METADATA, /* nested */
|
|
|
07a51b |
DEVLINK_ATTR_TRAP_GROUP_NAME, /* string */
|
|
|
07a51b |
|
|
|
07a51b |
+ DEVLINK_ATTR_RELOAD_FAILED, /* u8 0 or 1 */
|
|
|
07a51b |
+
|
|
|
07a51b |
/* add new attributes above here, update the policy in devlink.c */
|
|
|
07a51b |
|
|
|
07a51b |
__DEVLINK_ATTR_MAX,
|
|
|
07a51b |
diff --git a/include/uapi/linux/inet_diag.h b/include/uapi/linux/inet_diag.h
|
|
|
07a51b |
index f3bcd7ee82771..3dff6841486a4 100644
|
|
|
07a51b |
--- a/include/uapi/linux/inet_diag.h
|
|
|
07a51b |
+++ b/include/uapi/linux/inet_diag.h
|
|
|
07a51b |
@@ -153,11 +153,20 @@ enum {
|
|
|
07a51b |
INET_DIAG_BBRINFO, /* request as INET_DIAG_VEGASINFO */
|
|
|
07a51b |
INET_DIAG_CLASS_ID, /* request as INET_DIAG_TCLASS */
|
|
|
07a51b |
INET_DIAG_MD5SIG,
|
|
|
07a51b |
+ INET_DIAG_ULP_INFO,
|
|
|
07a51b |
__INET_DIAG_MAX,
|
|
|
07a51b |
};
|
|
|
07a51b |
|
|
|
07a51b |
#define INET_DIAG_MAX (__INET_DIAG_MAX - 1)
|
|
|
07a51b |
|
|
|
07a51b |
+enum {
|
|
|
07a51b |
+ INET_ULP_INFO_UNSPEC,
|
|
|
07a51b |
+ INET_ULP_INFO_NAME,
|
|
|
07a51b |
+ INET_ULP_INFO_TLS,
|
|
|
07a51b |
+ __INET_ULP_INFO_MAX,
|
|
|
07a51b |
+};
|
|
|
07a51b |
+#define INET_ULP_INFO_MAX (__INET_ULP_INFO_MAX - 1)
|
|
|
07a51b |
+
|
|
|
07a51b |
/* INET_DIAG_MEM */
|
|
|
07a51b |
|
|
|
07a51b |
struct inet_diag_meminfo {
|
|
|
07a51b |
diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h
|
|
|
07a51b |
index 0a9ab625cba7b..c6ad22f76edee 100644
|
|
|
07a51b |
--- a/include/uapi/linux/pkt_cls.h
|
|
|
07a51b |
+++ b/include/uapi/linux/pkt_cls.h
|
|
|
07a51b |
@@ -165,6 +165,8 @@ enum {
|
|
|
07a51b |
TCA_POLICE_RESULT,
|
|
|
07a51b |
TCA_POLICE_TM,
|
|
|
07a51b |
TCA_POLICE_PAD,
|
|
|
07a51b |
+ TCA_POLICE_RATE64,
|
|
|
07a51b |
+ TCA_POLICE_PEAKRATE64,
|
|
|
07a51b |
__TCA_POLICE_MAX
|
|
|
07a51b |
#define TCA_POLICE_RESULT TCA_POLICE_RESULT
|
|
|
07a51b |
};
|
|
|
07a51b |
diff --git a/include/uapi/linux/sctp.h b/include/uapi/linux/sctp.h
|
|
|
07a51b |
index c4bce0a2011c1..0d4c1507a169d 100644
|
|
|
07a51b |
--- a/include/uapi/linux/sctp.h
|
|
|
07a51b |
+++ b/include/uapi/linux/sctp.h
|
|
|
07a51b |
@@ -134,6 +134,9 @@ typedef __s32 sctp_assoc_t;
|
|
|
07a51b |
#define SCTP_INTERLEAVING_SUPPORTED 125
|
|
|
07a51b |
#define SCTP_SENDMSG_CONNECT 126
|
|
|
07a51b |
#define SCTP_EVENT 127
|
|
|
07a51b |
+#define SCTP_ASCONF_SUPPORTED 128
|
|
|
07a51b |
+#define SCTP_AUTH_SUPPORTED 129
|
|
|
07a51b |
+#define SCTP_ECN_SUPPORTED 130
|
|
|
07a51b |
|
|
|
07a51b |
/* PR-SCTP policies */
|
|
|
07a51b |
#define SCTP_PR_SCTP_NONE 0x0000
|
|
|
07a51b |
--
|
|
|
07a51b |
2.26.2
|
|
|
07a51b |
|