get/set_coalesce interface change in linux 5.15

Signed-off-by: Hyacinthe Cartiaux <[email protected]>
This commit is contained in:
Hyacinthe Cartiaux
2021-11-19 09:02:06 +01:00
parent 5a91843e03
commit d4f36d3821
+14
View File
@@ -18335,8 +18335,15 @@ out:
return ret;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0)
static int rtl8152_get_coalesce(struct net_device *netdev,
struct ethtool_coalesce *coalesce)
#else
static int rtl8152_get_coalesce(struct net_device *netdev,
struct ethtool_coalesce *coalesce,
struct kernel_ethtool_coalesce *kernel_coal,
struct netlink_ext_ack *extack)
#endif
{
struct r8152 *tp = netdev_priv(netdev);
@@ -18354,8 +18361,15 @@ static int rtl8152_get_coalesce(struct net_device *netdev,
return 0;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0)
static int rtl8152_set_coalesce(struct net_device *netdev,
struct ethtool_coalesce *coalesce)
#else
static int rtl8152_set_coalesce(struct net_device *netdev,
struct ethtool_coalesce *coalesce,
struct kernel_ethtool_coalesce *kernel_coal,
struct netlink_ext_ack *extack)
#endif
{
struct r8152 *tp = netdev_priv(netdev);
u32 rx_coalesce_nsecs;