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