File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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)
1833818339static 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)
1835718365static 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;
You can’t perform that action at this time.
0 commit comments