igb ethtool workaround for leap 15.5

This commit is contained in:
Bjarne von Horn 2023-05-31 16:39:06 +02:00
parent cb97379dc5
commit 4ada15a6b4
1 changed files with 13 additions and 1 deletions

View File

@ -876,7 +876,13 @@ static void igb_get_drvinfo(struct net_device *netdev,
}
static void igb_get_ringparam(struct net_device *netdev,
#if SUSE_VERSION == 15 && SUSE_PATCHLEVEL == 5
struct ethtool_ringparam *ring,
struct kernel_ethtool_ringparam *kring,
struct netlink_ext_ack *ack)
#else
struct ethtool_ringparam *ring)
#endif
{
struct igb_adapter *adapter = netdev_priv(netdev);
@ -887,7 +893,13 @@ static void igb_get_ringparam(struct net_device *netdev,
}
static int igb_set_ringparam(struct net_device *netdev,
#if SUSE_VERSION == 15 && SUSE_PATCHLEVEL == 5
struct ethtool_ringparam *ring,
struct kernel_ethtool_ringparam *kring,
struct netlink_ext_ack *ack)
#else
struct ethtool_ringparam *ring)
#endif
{
struct igb_adapter *adapter = netdev_priv(netdev);
struct igb_ring *temp_ring;