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

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