|
|
268297 |
From 526176cf61c011c2b63d7b9d86581f54f60e55cd Mon Sep 17 00:00:00 2001
|
|
|
268297 |
From: Jakub Kicinski <kuba@kernel.org>
|
|
|
268297 |
Date: Sun, 18 Oct 2020 14:31:45 -0700
|
|
|
268297 |
Subject: [PATCH 28/37] update UAPI header copies
|
|
|
268297 |
|
|
|
268297 |
Update to kernel commit 9453b2d4694c.
|
|
|
268297 |
|
|
|
268297 |
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
|
|
268297 |
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
|
|
|
268297 |
(cherry picked from commit 77613ca972ac37f11477539be8d2b604972e9c18)
|
|
|
268297 |
---
|
|
|
268297 |
uapi/linux/genetlink.h | 11 +++++++++++
|
|
|
268297 |
uapi/linux/netlink.h | 4 ++++
|
|
|
268297 |
2 files changed, 15 insertions(+)
|
|
|
268297 |
|
|
|
268297 |
diff --git a/uapi/linux/genetlink.h b/uapi/linux/genetlink.h
|
|
|
268297 |
index 7c6c390c48ee..9fa720ee87ae 100644
|
|
|
268297 |
--- a/uapi/linux/genetlink.h
|
|
|
268297 |
+++ b/uapi/linux/genetlink.h
|
|
|
268297 |
@@ -64,6 +64,8 @@ enum {
|
|
|
268297 |
CTRL_ATTR_OPS,
|
|
|
268297 |
CTRL_ATTR_MCAST_GROUPS,
|
|
|
268297 |
CTRL_ATTR_POLICY,
|
|
|
268297 |
+ CTRL_ATTR_OP_POLICY,
|
|
|
268297 |
+ CTRL_ATTR_OP,
|
|
|
268297 |
__CTRL_ATTR_MAX,
|
|
|
268297 |
};
|
|
|
268297 |
|
|
|
268297 |
@@ -85,6 +87,15 @@ enum {
|
|
|
268297 |
__CTRL_ATTR_MCAST_GRP_MAX,
|
|
|
268297 |
};
|
|
|
268297 |
|
|
|
268297 |
+enum {
|
|
|
268297 |
+ CTRL_ATTR_POLICY_UNSPEC,
|
|
|
268297 |
+ CTRL_ATTR_POLICY_DO,
|
|
|
268297 |
+ CTRL_ATTR_POLICY_DUMP,
|
|
|
268297 |
+
|
|
|
268297 |
+ __CTRL_ATTR_POLICY_DUMP_MAX,
|
|
|
268297 |
+ CTRL_ATTR_POLICY_DUMP_MAX = __CTRL_ATTR_POLICY_DUMP_MAX - 1
|
|
|
268297 |
+};
|
|
|
268297 |
+
|
|
|
268297 |
#define CTRL_ATTR_MCAST_GRP_MAX (__CTRL_ATTR_MCAST_GRP_MAX - 1)
|
|
|
268297 |
|
|
|
268297 |
|
|
|
268297 |
diff --git a/uapi/linux/netlink.h b/uapi/linux/netlink.h
|
|
|
268297 |
index 695c88e3c29d..dfef006be9f9 100644
|
|
|
268297 |
--- a/uapi/linux/netlink.h
|
|
|
268297 |
+++ b/uapi/linux/netlink.h
|
|
|
268297 |
@@ -129,6 +129,7 @@ struct nlmsgerr {
|
|
|
268297 |
* @NLMSGERR_ATTR_COOKIE: arbitrary subsystem specific cookie to
|
|
|
268297 |
* be used - in the success case - to identify a created
|
|
|
268297 |
* object or operation or similar (binary)
|
|
|
268297 |
+ * @NLMSGERR_ATTR_POLICY: policy for a rejected attribute
|
|
|
268297 |
* @__NLMSGERR_ATTR_MAX: number of attributes
|
|
|
268297 |
* @NLMSGERR_ATTR_MAX: highest attribute number
|
|
|
268297 |
*/
|
|
|
268297 |
@@ -137,6 +138,7 @@ enum nlmsgerr_attrs {
|
|
|
268297 |
NLMSGERR_ATTR_MSG,
|
|
|
268297 |
NLMSGERR_ATTR_OFFS,
|
|
|
268297 |
NLMSGERR_ATTR_COOKIE,
|
|
|
268297 |
+ NLMSGERR_ATTR_POLICY,
|
|
|
268297 |
|
|
|
268297 |
__NLMSGERR_ATTR_MAX,
|
|
|
268297 |
NLMSGERR_ATTR_MAX = __NLMSGERR_ATTR_MAX - 1
|
|
|
268297 |
@@ -327,6 +329,7 @@ enum netlink_attribute_type {
|
|
|
268297 |
* the index, if limited inside the nesting (U32)
|
|
|
268297 |
* @NL_POLICY_TYPE_ATTR_BITFIELD32_MASK: valid mask for the
|
|
|
268297 |
* bitfield32 type (U32)
|
|
|
268297 |
+ * @NL_POLICY_TYPE_ATTR_MASK: mask of valid bits for unsigned integers (U64)
|
|
|
268297 |
* @NL_POLICY_TYPE_ATTR_PAD: pad attribute for 64-bit alignment
|
|
|
268297 |
*/
|
|
|
268297 |
enum netlink_policy_type_attr {
|
|
|
268297 |
@@ -342,6 +345,7 @@ enum netlink_policy_type_attr {
|
|
|
268297 |
NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE,
|
|
|
268297 |
NL_POLICY_TYPE_ATTR_BITFIELD32_MASK,
|
|
|
268297 |
NL_POLICY_TYPE_ATTR_PAD,
|
|
|
268297 |
+ NL_POLICY_TYPE_ATTR_MASK,
|
|
|
268297 |
|
|
|
268297 |
/* keep last */
|
|
|
268297 |
__NL_POLICY_TYPE_ATTR_MAX,
|
|
|
268297 |
--
|
|
|
268297 |
2.26.2
|
|
|
268297 |
|