r8169 ethtool workaround for leap 15.5

This commit is contained in:
Bjarne von Horn 2023-09-13 15:07:49 +02:00
parent 2eeb31dcc1
commit 1d8e58bfc5
1 changed files with 7 additions and 1 deletions

View File

@ -1937,7 +1937,13 @@ static int rtl8169_set_eee(struct net_device *dev, struct ethtool_eee *data)
}
static void rtl8169_get_ringparam(struct net_device *dev,
struct ethtool_ringparam *data)
#if SUSE_VERSION == 15 && SUSE_PATCHLEVEL == 5
struct ethtool_ringparam *data,
struct kernel_ethtool_ringparam *kring,
struct netlink_ext_ack *ack)
#else
struct ethtool_ringparam *data)
#endif
{
data->rx_max_pending = NUM_RX_DESC;
data->rx_pending = NUM_RX_DESC;