Blame SOURCES/0027-update-UAPI-header-copies.patch

7e9df8
From 43ffee8b0530b0ee0458ba9c0cf651cc77201ba0 Mon Sep 17 00:00:00 2001
7e9df8
From: Michal Kubecek <mkubecek@suse.cz>
7e9df8
Date: Mon, 28 Sep 2020 16:55:49 +0200
7e9df8
Subject: [PATCH 27/37] update UAPI header copies
7e9df8
7e9df8
Update to kernel commit 0675c285ea65.
7e9df8
7e9df8
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
7e9df8
(cherry picked from commit 0cd0742eab2edd702306da79ddee48644ebe0c9a)
7e9df8
---
7e9df8
 uapi/linux/ethtool.h         |  2 ++
7e9df8
 uapi/linux/ethtool_netlink.h | 19 ++++++++++++++++++-
7e9df8
 uapi/linux/if_link.h         | 31 +++++++++++++++----------------
7e9df8
 3 files changed, 35 insertions(+), 17 deletions(-)
7e9df8
7e9df8
diff --git a/uapi/linux/ethtool.h b/uapi/linux/ethtool.h
7e9df8
index 847ccd0b1fce..052689bcc90c 100644
7e9df8
--- a/uapi/linux/ethtool.h
7e9df8
+++ b/uapi/linux/ethtool.h
7e9df8
@@ -1615,6 +1615,8 @@ enum ethtool_link_mode_bit_indices {
7e9df8
 	ETHTOOL_LINK_MODE_400000baseLR4_ER4_FR4_Full_BIT = 87,
7e9df8
 	ETHTOOL_LINK_MODE_400000baseDR4_Full_BIT	 = 88,
7e9df8
 	ETHTOOL_LINK_MODE_400000baseCR4_Full_BIT	 = 89,
7e9df8
+	ETHTOOL_LINK_MODE_100baseFX_Half_BIT		 = 90,
7e9df8
+	ETHTOOL_LINK_MODE_100baseFX_Full_BIT		 = 91,
7e9df8
 	/* must be last entry */
7e9df8
 	__ETHTOOL_LINK_MODE_MASK_NBITS
7e9df8
 };
7e9df8
diff --git a/uapi/linux/ethtool_netlink.h b/uapi/linux/ethtool_netlink.h
7e9df8
index cebdb52e6a05..c022883cdb22 100644
7e9df8
--- a/uapi/linux/ethtool_netlink.h
7e9df8
+++ b/uapi/linux/ethtool_netlink.h
7e9df8
@@ -79,6 +79,7 @@ enum {
7e9df8
 	ETHTOOL_MSG_TSINFO_GET_REPLY,
7e9df8
 	ETHTOOL_MSG_CABLE_TEST_NTF,
7e9df8
 	ETHTOOL_MSG_CABLE_TEST_TDR_NTF,
7e9df8
+	ETHTOOL_MSG_TUNNEL_INFO_GET_REPLY,
7e9df8
 
7e9df8
 	/* add new constants above here */
7e9df8
 	__ETHTOOL_MSG_KERNEL_CNT,
7e9df8
@@ -91,9 +92,12 @@ enum {
7e9df8
 #define ETHTOOL_FLAG_COMPACT_BITSETS	(1 << 0)
7e9df8
 /* provide optional reply for SET or ACT requests */
7e9df8
 #define ETHTOOL_FLAG_OMIT_REPLY	(1 << 1)
7e9df8
+/* request statistics, if supported by the driver */
7e9df8
+#define ETHTOOL_FLAG_STATS		(1 << 2)
7e9df8
 
7e9df8
 #define ETHTOOL_FLAG_ALL (ETHTOOL_FLAG_COMPACT_BITSETS | \
7e9df8
-			  ETHTOOL_FLAG_OMIT_REPLY)
7e9df8
+			  ETHTOOL_FLAG_OMIT_REPLY | \
7e9df8
+			  ETHTOOL_FLAG_STATS)
7e9df8
 
7e9df8
 enum {
7e9df8
 	ETHTOOL_A_HEADER_UNSPEC,
7e9df8
@@ -376,12 +380,25 @@ enum {
7e9df8
 	ETHTOOL_A_PAUSE_AUTONEG,			/* u8 */
7e9df8
 	ETHTOOL_A_PAUSE_RX,				/* u8 */
7e9df8
 	ETHTOOL_A_PAUSE_TX,				/* u8 */
7e9df8
+	ETHTOOL_A_PAUSE_STATS,				/* nest - _PAUSE_STAT_* */
7e9df8
 
7e9df8
 	/* add new constants above here */
7e9df8
 	__ETHTOOL_A_PAUSE_CNT,
7e9df8
 	ETHTOOL_A_PAUSE_MAX = (__ETHTOOL_A_PAUSE_CNT - 1)
7e9df8
 };
7e9df8
 
7e9df8
+enum {
7e9df8
+	ETHTOOL_A_PAUSE_STAT_UNSPEC,
7e9df8
+	ETHTOOL_A_PAUSE_STAT_PAD,
7e9df8
+
7e9df8
+	ETHTOOL_A_PAUSE_STAT_TX_FRAMES,
7e9df8
+	ETHTOOL_A_PAUSE_STAT_RX_FRAMES,
7e9df8
+
7e9df8
+	/* add new constants above here */
7e9df8
+	__ETHTOOL_A_PAUSE_STAT_CNT,
7e9df8
+	ETHTOOL_A_PAUSE_STAT_MAX = (__ETHTOOL_A_PAUSE_STAT_CNT - 1)
7e9df8
+};
7e9df8
+
7e9df8
 /* EEE */
7e9df8
 
7e9df8
 enum {
7e9df8
diff --git a/uapi/linux/if_link.h b/uapi/linux/if_link.h
7e9df8
index 9d96890f9742..307e5c245e9f 100644
7e9df8
--- a/uapi/linux/if_link.h
7e9df8
+++ b/uapi/linux/if_link.h
7e9df8
@@ -7,24 +7,23 @@
7e9df8
 
7e9df8
 /* This struct should be in sync with struct rtnl_link_stats64 */
7e9df8
 struct rtnl_link_stats {
7e9df8
-	__u32	rx_packets;		/* total packets received	*/
7e9df8
-	__u32	tx_packets;		/* total packets transmitted	*/
7e9df8
-	__u32	rx_bytes;		/* total bytes received 	*/
7e9df8
-	__u32	tx_bytes;		/* total bytes transmitted	*/
7e9df8
-	__u32	rx_errors;		/* bad packets received		*/
7e9df8
-	__u32	tx_errors;		/* packet transmit problems	*/
7e9df8
-	__u32	rx_dropped;		/* no space in linux buffers	*/
7e9df8
-	__u32	tx_dropped;		/* no space available in linux	*/
7e9df8
-	__u32	multicast;		/* multicast packets received	*/
7e9df8
+	__u32	rx_packets;
7e9df8
+	__u32	tx_packets;
7e9df8
+	__u32	rx_bytes;
7e9df8
+	__u32	tx_bytes;
7e9df8
+	__u32	rx_errors;
7e9df8
+	__u32	tx_errors;
7e9df8
+	__u32	rx_dropped;
7e9df8
+	__u32	tx_dropped;
7e9df8
+	__u32	multicast;
7e9df8
 	__u32	collisions;
7e9df8
-
7e9df8
 	/* detailed rx_errors: */
7e9df8
 	__u32	rx_length_errors;
7e9df8
-	__u32	rx_over_errors;		/* receiver ring buff overflow	*/
7e9df8
-	__u32	rx_crc_errors;		/* recved pkt with crc error	*/
7e9df8
-	__u32	rx_frame_errors;	/* recv'd frame alignment error */
7e9df8
-	__u32	rx_fifo_errors;		/* recv'r fifo overrun		*/
7e9df8
-	__u32	rx_missed_errors;	/* receiver missed packet	*/
7e9df8
+	__u32	rx_over_errors;
7e9df8
+	__u32	rx_crc_errors;
7e9df8
+	__u32	rx_frame_errors;
7e9df8
+	__u32	rx_fifo_errors;
7e9df8
+	__u32	rx_missed_errors;
7e9df8
 
7e9df8
 	/* detailed tx_errors */
7e9df8
 	__u32	tx_aborted_errors;
7e9df8
@@ -37,7 +36,7 @@ struct rtnl_link_stats {
7e9df8
 	__u32	rx_compressed;
7e9df8
 	__u32	tx_compressed;
7e9df8
 
7e9df8
-	__u32	rx_nohandler;		/* dropped, no handler found	*/
7e9df8
+	__u32	rx_nohandler;
7e9df8
 };
7e9df8
 
7e9df8
 /**
7e9df8
-- 
7e9df8
2.26.2
7e9df8