|
|
7e9df8 |
From b70c39e968db6cb67d64526cafd72fc0763d959a Mon Sep 17 00:00:00 2001
|
|
|
7e9df8 |
From: Danielle Ratson <danieller@nvidia.com>
|
|
|
7e9df8 |
Date: Wed, 10 Feb 2021 15:48:36 +0200
|
|
|
7e9df8 |
Subject: [PATCH 38/42] update UAPI header copies
|
|
|
7e9df8 |
|
|
|
7e9df8 |
Update to kernel commit 012ce4dd3102.
|
|
|
7e9df8 |
|
|
|
7e9df8 |
Signed-off-by: Danielle Ratson <danieller@nvidia.com>
|
|
|
7e9df8 |
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
|
|
|
7e9df8 |
(cherry picked from commit 18e509526a727c594c29622489437c7376f44d32)
|
|
|
7e9df8 |
---
|
|
|
7e9df8 |
uapi/linux/ethtool.h | 2 +-
|
|
|
7e9df8 |
uapi/linux/ethtool_netlink.h | 1 +
|
|
|
7e9df8 |
uapi/linux/if_link.h | 10 ++++++++--
|
|
|
7e9df8 |
uapi/linux/netlink.h | 2 +-
|
|
|
7e9df8 |
uapi/linux/rtnetlink.h | 20 +++++++++++++++-----
|
|
|
7e9df8 |
5 files changed, 26 insertions(+), 9 deletions(-)
|
|
|
7e9df8 |
|
|
|
7e9df8 |
diff --git a/uapi/linux/ethtool.h b/uapi/linux/ethtool.h
|
|
|
7e9df8 |
index 052689bcc90c..a951137bdba9 100644
|
|
|
7e9df8 |
--- a/uapi/linux/ethtool.h
|
|
|
7e9df8 |
+++ b/uapi/linux/ethtool.h
|
|
|
7e9df8 |
@@ -14,7 +14,7 @@
|
|
|
7e9df8 |
#ifndef _LINUX_ETHTOOL_H
|
|
|
7e9df8 |
#define _LINUX_ETHTOOL_H
|
|
|
7e9df8 |
|
|
|
7e9df8 |
-#include <linux/kernel.h>
|
|
|
7e9df8 |
+#include <linux/const.h>
|
|
|
7e9df8 |
#include <linux/types.h>
|
|
|
7e9df8 |
#include <linux/if_ether.h>
|
|
|
7e9df8 |
|
|
|
7e9df8 |
diff --git a/uapi/linux/ethtool_netlink.h b/uapi/linux/ethtool_netlink.h
|
|
|
7e9df8 |
index c022883cdb22..0cd6906aa5d5 100644
|
|
|
7e9df8 |
--- a/uapi/linux/ethtool_netlink.h
|
|
|
7e9df8 |
+++ b/uapi/linux/ethtool_netlink.h
|
|
|
7e9df8 |
@@ -227,6 +227,7 @@ enum {
|
|
|
7e9df8 |
ETHTOOL_A_LINKMODES_DUPLEX, /* u8 */
|
|
|
7e9df8 |
ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG, /* u8 */
|
|
|
7e9df8 |
ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE, /* u8 */
|
|
|
7e9df8 |
+ ETHTOOL_A_LINKMODES_LANES, /* u32 */
|
|
|
7e9df8 |
|
|
|
7e9df8 |
/* add new constants above here */
|
|
|
7e9df8 |
__ETHTOOL_A_LINKMODES_CNT,
|
|
|
7e9df8 |
diff --git a/uapi/linux/if_link.h b/uapi/linux/if_link.h
|
|
|
7e9df8 |
index 307e5c245e9f..c96880c51c93 100644
|
|
|
7e9df8 |
--- a/uapi/linux/if_link.h
|
|
|
7e9df8 |
+++ b/uapi/linux/if_link.h
|
|
|
7e9df8 |
@@ -75,8 +75,9 @@ struct rtnl_link_stats {
|
|
|
7e9df8 |
*
|
|
|
7e9df8 |
* @rx_dropped: Number of packets received but not processed,
|
|
|
7e9df8 |
* e.g. due to lack of resources or unsupported protocol.
|
|
|
7e9df8 |
- * For hardware interfaces this counter should not include packets
|
|
|
7e9df8 |
- * dropped by the device which are counted separately in
|
|
|
7e9df8 |
+ * For hardware interfaces this counter may include packets discarded
|
|
|
7e9df8 |
+ * due to L2 address filtering but should not include packets dropped
|
|
|
7e9df8 |
+ * by the device due to buffer exhaustion which are counted separately in
|
|
|
7e9df8 |
* @rx_missed_errors (since procfs folds those two counters together).
|
|
|
7e9df8 |
*
|
|
|
7e9df8 |
* @tx_dropped: Number of packets dropped on their way to transmission,
|
|
|
7e9df8 |
@@ -522,6 +523,8 @@ enum {
|
|
|
7e9df8 |
IFLA_BRPORT_BACKUP_PORT,
|
|
|
7e9df8 |
IFLA_BRPORT_MRP_RING_OPEN,
|
|
|
7e9df8 |
IFLA_BRPORT_MRP_IN_OPEN,
|
|
|
7e9df8 |
+ IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT,
|
|
|
7e9df8 |
+ IFLA_BRPORT_MCAST_EHT_HOSTS_CNT,
|
|
|
7e9df8 |
__IFLA_BRPORT_MAX
|
|
|
7e9df8 |
};
|
|
|
7e9df8 |
#define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1)
|
|
|
7e9df8 |
@@ -586,6 +589,8 @@ enum {
|
|
|
7e9df8 |
IFLA_MACVLAN_MACADDR,
|
|
|
7e9df8 |
IFLA_MACVLAN_MACADDR_DATA,
|
|
|
7e9df8 |
IFLA_MACVLAN_MACADDR_COUNT,
|
|
|
7e9df8 |
+ IFLA_MACVLAN_BC_QUEUE_LEN,
|
|
|
7e9df8 |
+ IFLA_MACVLAN_BC_QUEUE_LEN_USED,
|
|
|
7e9df8 |
__IFLA_MACVLAN_MAX,
|
|
|
7e9df8 |
};
|
|
|
7e9df8 |
|
|
|
7e9df8 |
@@ -804,6 +809,7 @@ enum {
|
|
|
7e9df8 |
IFLA_GTP_FD1,
|
|
|
7e9df8 |
IFLA_GTP_PDP_HASHSIZE,
|
|
|
7e9df8 |
IFLA_GTP_ROLE,
|
|
|
7e9df8 |
+ IFLA_GTP_COLLECT_METADATA,
|
|
|
7e9df8 |
__IFLA_GTP_MAX,
|
|
|
7e9df8 |
};
|
|
|
7e9df8 |
#define IFLA_GTP_MAX (__IFLA_GTP_MAX - 1)
|
|
|
7e9df8 |
diff --git a/uapi/linux/netlink.h b/uapi/linux/netlink.h
|
|
|
7e9df8 |
index dfef006be9f9..5024c5435749 100644
|
|
|
7e9df8 |
--- a/uapi/linux/netlink.h
|
|
|
7e9df8 |
+++ b/uapi/linux/netlink.h
|
|
|
7e9df8 |
@@ -2,7 +2,7 @@
|
|
|
7e9df8 |
#ifndef __LINUX_NETLINK_H
|
|
|
7e9df8 |
#define __LINUX_NETLINK_H
|
|
|
7e9df8 |
|
|
|
7e9df8 |
-#include <linux/kernel.h>
|
|
|
7e9df8 |
+#include <linux/const.h>
|
|
|
7e9df8 |
#include <linux/socket.h> /* for __kernel_sa_family_t */
|
|
|
7e9df8 |
#include <linux/types.h>
|
|
|
7e9df8 |
|
|
|
7e9df8 |
diff --git a/uapi/linux/rtnetlink.h b/uapi/linux/rtnetlink.h
|
|
|
7e9df8 |
index 5ad84e663d01..c66fd247d90a 100644
|
|
|
7e9df8 |
--- a/uapi/linux/rtnetlink.h
|
|
|
7e9df8 |
+++ b/uapi/linux/rtnetlink.h
|
|
|
7e9df8 |
@@ -396,11 +396,13 @@ struct rtnexthop {
|
|
|
7e9df8 |
#define RTNH_F_DEAD 1 /* Nexthop is dead (used by multipath) */
|
|
|
7e9df8 |
#define RTNH_F_PERVASIVE 2 /* Do recursive gateway lookup */
|
|
|
7e9df8 |
#define RTNH_F_ONLINK 4 /* Gateway is forced on link */
|
|
|
7e9df8 |
-#define RTNH_F_OFFLOAD 8 /* offloaded route */
|
|
|
7e9df8 |
+#define RTNH_F_OFFLOAD 8 /* Nexthop is offloaded */
|
|
|
7e9df8 |
#define RTNH_F_LINKDOWN 16 /* carrier-down on nexthop */
|
|
|
7e9df8 |
#define RTNH_F_UNRESOLVED 32 /* The entry is unresolved (ipmr) */
|
|
|
7e9df8 |
+#define RTNH_F_TRAP 64 /* Nexthop is trapping packets */
|
|
|
7e9df8 |
|
|
|
7e9df8 |
-#define RTNH_COMPARE_MASK (RTNH_F_DEAD | RTNH_F_LINKDOWN | RTNH_F_OFFLOAD)
|
|
|
7e9df8 |
+#define RTNH_COMPARE_MASK (RTNH_F_DEAD | RTNH_F_LINKDOWN | \
|
|
|
7e9df8 |
+ RTNH_F_OFFLOAD | RTNH_F_TRAP)
|
|
|
7e9df8 |
|
|
|
7e9df8 |
/* Macros to handle hexthops */
|
|
|
7e9df8 |
|
|
|
7e9df8 |
@@ -764,12 +766,18 @@ enum {
|
|
|
7e9df8 |
#define TA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct tcamsg))
|
|
|
7e9df8 |
/* tcamsg flags stored in attribute TCA_ROOT_FLAGS
|
|
|
7e9df8 |
*
|
|
|
7e9df8 |
- * TCA_FLAG_LARGE_DUMP_ON user->kernel to request for larger than TCA_ACT_MAX_PRIO
|
|
|
7e9df8 |
- * actions in a dump. All dump responses will contain the number of actions
|
|
|
7e9df8 |
- * being dumped stored in for user app's consumption in TCA_ROOT_COUNT
|
|
|
7e9df8 |
+ * TCA_ACT_FLAG_LARGE_DUMP_ON user->kernel to request for larger than
|
|
|
7e9df8 |
+ * TCA_ACT_MAX_PRIO actions in a dump. All dump responses will contain the
|
|
|
7e9df8 |
+ * number of actions being dumped stored in for user app's consumption in
|
|
|
7e9df8 |
+ * TCA_ROOT_COUNT
|
|
|
7e9df8 |
+ *
|
|
|
7e9df8 |
+ * TCA_ACT_FLAG_TERSE_DUMP user->kernel to request terse (brief) dump that only
|
|
|
7e9df8 |
+ * includes essential action info (kind, index, etc.)
|
|
|
7e9df8 |
*
|
|
|
7e9df8 |
*/
|
|
|
7e9df8 |
#define TCA_FLAG_LARGE_DUMP_ON (1 << 0)
|
|
|
7e9df8 |
+#define TCA_ACT_FLAG_LARGE_DUMP_ON TCA_FLAG_LARGE_DUMP_ON
|
|
|
7e9df8 |
+#define TCA_ACT_FLAG_TERSE_DUMP (1 << 1)
|
|
|
7e9df8 |
|
|
|
7e9df8 |
/* New extended info filters for IFLA_EXT_MASK */
|
|
|
7e9df8 |
#define RTEXT_FILTER_VF (1 << 0)
|
|
|
7e9df8 |
@@ -777,6 +785,8 @@ enum {
|
|
|
7e9df8 |
#define RTEXT_FILTER_BRVLAN_COMPRESSED (1 << 2)
|
|
|
7e9df8 |
#define RTEXT_FILTER_SKIP_STATS (1 << 3)
|
|
|
7e9df8 |
#define RTEXT_FILTER_MRP (1 << 4)
|
|
|
7e9df8 |
+#define RTEXT_FILTER_CFM_CONFIG (1 << 5)
|
|
|
7e9df8 |
+#define RTEXT_FILTER_CFM_STATUS (1 << 6)
|
|
|
7e9df8 |
|
|
|
7e9df8 |
/* End of information exported to user level */
|
|
|
7e9df8 |
|
|
|
7e9df8 |
--
|
|
|
7e9df8 |
2.31.1
|
|
|
7e9df8 |
|