Skip to content

Commit d4f36d3

Browse files
committed
get/set_coalesce interface change in linux 5.15
Signed-off-by: Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr>
1 parent 5a91843 commit d4f36d3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

r8152.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18335,8 +18335,15 @@ static int rtl8152_nway_reset(struct net_device *dev)
1833518335
return ret;
1833618336
}
1833718337

18338+
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0)
1833818339
static int rtl8152_get_coalesce(struct net_device *netdev,
1833918340
struct ethtool_coalesce *coalesce)
18341+
#else
18342+
static int rtl8152_get_coalesce(struct net_device *netdev,
18343+
struct ethtool_coalesce *coalesce,
18344+
struct kernel_ethtool_coalesce *kernel_coal,
18345+
struct netlink_ext_ack *extack)
18346+
#endif
1834018347
{
1834118348
struct r8152 *tp = netdev_priv(netdev);
1834218349

@@ -18354,8 +18361,15 @@ static int rtl8152_get_coalesce(struct net_device *netdev,
1835418361
return 0;
1835518362
}
1835618363

18364+
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0)
1835718365
static int rtl8152_set_coalesce(struct net_device *netdev,
1835818366
struct ethtool_coalesce *coalesce)
18367+
#else
18368+
static int rtl8152_set_coalesce(struct net_device *netdev,
18369+
struct ethtool_coalesce *coalesce,
18370+
struct kernel_ethtool_coalesce *kernel_coal,
18371+
struct netlink_ext_ack *extack)
18372+
#endif
1835918373
{
1836018374
struct r8152 *tp = netdev_priv(netdev);
1836118375
u32 rx_coalesce_nsecs;

0 commit comments

Comments
 (0)