1From 30ff5d1f742e2ed1be3fd9c42dcc902b6f3a19cc Mon Sep 17 00:00:00 2001 2From: Jeffy Chen <jeffy.chen@rock-chips.com> 3Date: Wed, 27 May 2020 15:24:19 +0800 4Subject: [PATCH 4/5] uapi: netlink.h: Add more definations from upstream 5 6No functional changes. 7 8Change-Id: I7fb817dda7f9755e6d068594cbc71e2202a5ade5 9Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> 10--- 11 include/uapi/linux/netlink.h | 27 +++++++++++++++++++++++++++ 12 1 file changed, 27 insertions(+) 13 14diff --git a/include/uapi/linux/netlink.h b/include/uapi/linux/netlink.h 15index 0dba4e4ed2be..c4999c6552f1 100644 16--- a/include/uapi/linux/netlink.h 17+++ b/include/uapi/linux/netlink.h 18@@ -68,6 +68,10 @@ struct nlmsghdr { 19 #define NLM_F_CREATE 0x400 /* Create, if it does not exist */ 20 #define NLM_F_APPEND 0x800 /* Add to end of list */ 21 22+/* Flags for ACK message */ 23+#define NLM_F_CAPPED 0x100 /* request was capped */ 24+#define NLM_F_ACK_TLVS 0x200 /* extended ACK TVLs were included */ 25+ 26 /* 27 4.4BSD ADD NLM_F_CREATE|NLM_F_EXCL 28 4.4BSD CHANGE NLM_F_REPLACE 29@@ -102,6 +106,28 @@ struct nlmsgerr { 30 struct nlmsghdr msg; 31 }; 32 33+/** 34+ * enum nlmsgerr_attrs - nlmsgerr attributes 35+ * @NLMSGERR_ATTR_UNUSED: unused 36+ * @NLMSGERR_ATTR_MSG: error message string (string) 37+ * @NLMSGERR_ATTR_OFFS: offset of the invalid attribute in the original 38+ * message, counting from the beginning of the header (u32) 39+ * @NLMSGERR_ATTR_COOKIE: arbitrary subsystem specific cookie to 40+ * be used - in the success case - to identify a created 41+ * object or operation or similar (binary) 42+ * @__NLMSGERR_ATTR_MAX: number of attributes 43+ * @NLMSGERR_ATTR_MAX: highest attribute number 44+ */ 45+enum nlmsgerr_attrs { 46+ NLMSGERR_ATTR_UNUSED, 47+ NLMSGERR_ATTR_MSG, 48+ NLMSGERR_ATTR_OFFS, 49+ NLMSGERR_ATTR_COOKIE, 50+ 51+ __NLMSGERR_ATTR_MAX, 52+ NLMSGERR_ATTR_MAX = __NLMSGERR_ATTR_MAX - 1 53+}; 54+ 55 #define NETLINK_ADD_MEMBERSHIP 1 56 #define NETLINK_DROP_MEMBERSHIP 2 57 #define NETLINK_PKTINFO 3 58@@ -114,6 +140,7 @@ struct nlmsgerr { 59 #define NETLINK_LISTEN_ALL_NSID 8 60 #define NETLINK_LIST_MEMBERSHIPS 9 61 #define NETLINK_CAP_ACK 10 62+#define NETLINK_EXT_ACK 11 63 64 struct nl_pktinfo { 65 __u32 group; 66-- 672.20.1 68 69