From db69f51a48e932632092cd6098c8e07db2d3234c Mon Sep 17 00:00:00 2001
From: Algernon <lixiaodong67@huawei.com>
Date: Wed, 12 Jul 2023 20:01:04 +0800
Subject: [PATCH 221/283] The kabi issue is resolved when the rx_buf_len
 extension ring is used to set parameters or obtain APIs

driver inclusion
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I8EN49

--------------------------------

Fix it because ethtool_ Get in ops structure_ Ringparam, set_ Kabi problem caused by
changes in ringparam member parameters.

Signed-off-by: Xiaodong Li <lixiaodong67@huawei.com>
---
 include/linux/ethtool.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index 812026982640..c51da6a2c1de 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -417,9 +417,9 @@ struct ethtool_ops {
 			      struct ethtool_eeprom *, u8 *);
 	int	(*get_coalesce)(struct net_device *, struct ethtool_coalesce *);
 	int	(*set_coalesce)(struct net_device *, struct ethtool_coalesce *);
-	void	(*get_ringparam)(struct net_device *,
+	void    (*get_ringparam)(struct net_device *,
 				 struct ethtool_ringparam *);
-	int	(*set_ringparam)(struct net_device *,
+	int     (*set_ringparam)(struct net_device *,
 				 struct ethtool_ringparam *);
 	void	(*get_pauseparam)(struct net_device *,
 				  struct ethtool_pauseparam*);
-- 
2.34.1

