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

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