|
|
07a51b |
From 4dfaa0a3e4ea077d95d7355e73a8069b1c8af97b 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 ce9191ffee31d
|
|
|
07a51b |
Conflicts: several unrelated missing changes in uapi
|
|
|
07a51b |
|
|
|
07a51b |
commit ce9191ffee31d440591bf49ef530b80ee9975dfb
|
|
|
07a51b |
Author: David Ahern <dsahern@gmail.com>
|
|
|
07a51b |
Date: Tue Mar 31 23:23:28 2020 +0000
|
|
|
07a51b |
|
|
|
07a51b |
Update kernel headers
|
|
|
07a51b |
|
|
|
07a51b |
Update kernel headers to commit:
|
|
|
07a51b |
7f80ccfe9968 ("net: ipv6: rpl_iptunnel: Fix potential memory leak in rpl_do_srh_inline")
|
|
|
07a51b |
|
|
|
07a51b |
Signed-off-by: David Ahern <dsahern@gmail.com>
|
|
|
07a51b |
---
|
|
|
07a51b |
include/uapi/linux/bpf.h | 20 +++++++++++++++++++-
|
|
|
07a51b |
include/uapi/linux/devlink.h | 6 ++++++
|
|
|
07a51b |
include/uapi/linux/if_link.h | 5 ++++-
|
|
|
07a51b |
include/uapi/linux/inet_diag.h | 1 +
|
|
|
07a51b |
include/uapi/linux/lwtunnel.h | 1 +
|
|
|
07a51b |
5 files changed, 31 insertions(+), 2 deletions(-)
|
|
|
07a51b |
|
|
|
07a51b |
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
|
|
|
07a51b |
index 6d55239a4cc0f..94aa5a1d38215 100644
|
|
|
07a51b |
--- a/include/uapi/linux/bpf.h
|
|
|
07a51b |
+++ b/include/uapi/linux/bpf.h
|
|
|
07a51b |
@@ -483,7 +483,7 @@ union bpf_attr {
|
|
|
07a51b |
__u32 prog_cnt;
|
|
|
07a51b |
} query;
|
|
|
07a51b |
|
|
|
07a51b |
- struct {
|
|
|
07a51b |
+ struct { /* anonymous struct used by BPF_RAW_TRACEPOINT_OPEN command */
|
|
|
07a51b |
__u64 name;
|
|
|
07a51b |
__u32 prog_fd;
|
|
|
07a51b |
} raw_tracepoint;
|
|
|
07a51b |
@@ -511,6 +511,24 @@ union bpf_attr {
|
|
|
07a51b |
__u64 probe_offset; /* output: probe_offset */
|
|
|
07a51b |
__u64 probe_addr; /* output: probe_addr */
|
|
|
07a51b |
} task_fd_query;
|
|
|
07a51b |
+
|
|
|
07a51b |
+ struct { /* struct used by BPF_LINK_CREATE command */
|
|
|
07a51b |
+ __u32 prog_fd; /* eBPF program to attach */
|
|
|
07a51b |
+ __u32 target_fd; /* object to attach to */
|
|
|
07a51b |
+ __u32 attach_type; /* attach type */
|
|
|
07a51b |
+ __u32 flags; /* extra flags */
|
|
|
07a51b |
+ } link_create;
|
|
|
07a51b |
+
|
|
|
07a51b |
+ struct { /* struct used by BPF_LINK_UPDATE command */
|
|
|
07a51b |
+ __u32 link_fd; /* link fd */
|
|
|
07a51b |
+ /* new program fd to update link with */
|
|
|
07a51b |
+ __u32 new_prog_fd;
|
|
|
07a51b |
+ __u32 flags; /* extra flags */
|
|
|
07a51b |
+ /* expected link's program fd; is specified only if
|
|
|
07a51b |
+ * BPF_F_REPLACE flag is set in flags */
|
|
|
07a51b |
+ __u32 old_prog_fd;
|
|
|
07a51b |
+ } link_update;
|
|
|
07a51b |
+
|
|
|
07a51b |
} __attribute__((aligned(8)));
|
|
|
07a51b |
|
|
|
07a51b |
/* The description below is an attempt at providing documentation to eBPF
|
|
|
07a51b |
diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
|
|
|
07a51b |
index 79e1405db67cc..e63aeab76bcb8 100644
|
|
|
07a51b |
--- a/include/uapi/linux/devlink.h
|
|
|
07a51b |
+++ b/include/uapi/linux/devlink.h
|
|
|
07a51b |
@@ -117,6 +117,11 @@ enum devlink_command {
|
|
|
07a51b |
DEVLINK_CMD_TRAP_GROUP_NEW,
|
|
|
07a51b |
DEVLINK_CMD_TRAP_GROUP_DEL,
|
|
|
07a51b |
|
|
|
07a51b |
+ DEVLINK_CMD_TRAP_POLICER_GET, /* can dump */
|
|
|
07a51b |
+ DEVLINK_CMD_TRAP_POLICER_SET,
|
|
|
07a51b |
+ DEVLINK_CMD_TRAP_POLICER_NEW,
|
|
|
07a51b |
+ DEVLINK_CMD_TRAP_POLICER_DEL,
|
|
|
07a51b |
+
|
|
|
07a51b |
/* add new commands above here */
|
|
|
07a51b |
__DEVLINK_CMD_MAX,
|
|
|
07a51b |
DEVLINK_CMD_MAX = __DEVLINK_CMD_MAX - 1
|
|
|
07a51b |
@@ -216,6 +221,7 @@ enum devlink_param_reset_dev_on_drv_probe_value {
|
|
|
07a51b |
enum {
|
|
|
07a51b |
DEVLINK_ATTR_STATS_RX_PACKETS, /* u64 */
|
|
|
07a51b |
DEVLINK_ATTR_STATS_RX_BYTES, /* u64 */
|
|
|
07a51b |
+ DEVLINK_ATTR_STATS_RX_DROPPED, /* u64 */
|
|
|
07a51b |
|
|
|
07a51b |
__DEVLINK_ATTR_STATS_MAX,
|
|
|
07a51b |
DEVLINK_ATTR_STATS_MAX = __DEVLINK_ATTR_STATS_MAX - 1
|
|
|
07a51b |
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h
|
|
|
07a51b |
index 4da0768d7a5a3..5d69479b8052d 100644
|
|
|
07a51b |
--- a/include/uapi/linux/if_link.h
|
|
|
07a51b |
+++ b/include/uapi/linux/if_link.h
|
|
|
07a51b |
@@ -459,6 +459,7 @@ enum {
|
|
|
07a51b |
IFLA_MACSEC_REPLAY_PROTECT,
|
|
|
07a51b |
IFLA_MACSEC_VALIDATION,
|
|
|
07a51b |
IFLA_MACSEC_PAD,
|
|
|
07a51b |
+ IFLA_MACSEC_OFFLOAD,
|
|
|
07a51b |
__IFLA_MACSEC_MAX,
|
|
|
07a51b |
};
|
|
|
07a51b |
|
|
|
07a51b |
@@ -949,11 +950,12 @@ enum {
|
|
|
07a51b |
#define XDP_FLAGS_SKB_MODE (1U << 1)
|
|
|
07a51b |
#define XDP_FLAGS_DRV_MODE (1U << 2)
|
|
|
07a51b |
#define XDP_FLAGS_HW_MODE (1U << 3)
|
|
|
07a51b |
+#define XDP_FLAGS_REPLACE (1U << 4)
|
|
|
07a51b |
#define XDP_FLAGS_MODES (XDP_FLAGS_SKB_MODE | \
|
|
|
07a51b |
XDP_FLAGS_DRV_MODE | \
|
|
|
07a51b |
XDP_FLAGS_HW_MODE)
|
|
|
07a51b |
#define XDP_FLAGS_MASK (XDP_FLAGS_UPDATE_IF_NOEXIST | \
|
|
|
07a51b |
- XDP_FLAGS_MODES)
|
|
|
07a51b |
+ XDP_FLAGS_MODES | XDP_FLAGS_REPLACE)
|
|
|
07a51b |
|
|
|
07a51b |
/* These are stored into IFLA_XDP_ATTACHED on dump. */
|
|
|
07a51b |
enum {
|
|
|
07a51b |
@@ -973,6 +975,7 @@ enum {
|
|
|
07a51b |
IFLA_XDP_DRV_PROG_ID,
|
|
|
07a51b |
IFLA_XDP_SKB_PROG_ID,
|
|
|
07a51b |
IFLA_XDP_HW_PROG_ID,
|
|
|
07a51b |
+ IFLA_XDP_EXPECTED_FD,
|
|
|
07a51b |
__IFLA_XDP_MAX,
|
|
|
07a51b |
};
|
|
|
07a51b |
|
|
|
07a51b |
diff --git a/include/uapi/linux/inet_diag.h b/include/uapi/linux/inet_diag.h
|
|
|
07a51b |
index 3dff6841486a4..db45fc664a5fd 100644
|
|
|
07a51b |
--- a/include/uapi/linux/inet_diag.h
|
|
|
07a51b |
+++ b/include/uapi/linux/inet_diag.h
|
|
|
07a51b |
@@ -163,6 +163,7 @@ enum {
|
|
|
07a51b |
INET_ULP_INFO_UNSPEC,
|
|
|
07a51b |
INET_ULP_INFO_NAME,
|
|
|
07a51b |
INET_ULP_INFO_TLS,
|
|
|
07a51b |
+ INET_ULP_INFO_MPTCP,
|
|
|
07a51b |
__INET_ULP_INFO_MAX,
|
|
|
07a51b |
};
|
|
|
07a51b |
#define INET_ULP_INFO_MAX (__INET_ULP_INFO_MAX - 1)
|
|
|
07a51b |
diff --git a/include/uapi/linux/lwtunnel.h b/include/uapi/linux/lwtunnel.h
|
|
|
07a51b |
index 3f3fe6f30df0b..0ba94063c1809 100644
|
|
|
07a51b |
--- a/include/uapi/linux/lwtunnel.h
|
|
|
07a51b |
+++ b/include/uapi/linux/lwtunnel.h
|
|
|
07a51b |
@@ -13,6 +13,7 @@ enum lwtunnel_encap_types {
|
|
|
07a51b |
LWTUNNEL_ENCAP_SEG6,
|
|
|
07a51b |
LWTUNNEL_ENCAP_BPF,
|
|
|
07a51b |
LWTUNNEL_ENCAP_SEG6_LOCAL,
|
|
|
07a51b |
+ LWTUNNEL_ENCAP_RPL,
|
|
|
07a51b |
__LWTUNNEL_ENCAP_MAX,
|
|
|
07a51b |
};
|
|
|
07a51b |
|
|
|
07a51b |
--
|
|
|
07a51b |
2.26.2
|
|
|
07a51b |
|