From 1b8f04e99b65dd97af78ee1a6f6610072be32625 Mon Sep 17 00:00:00 2001 From: Marcin Sajak Date: Wed, 4 Nov 2020 18:09:24 +1100 Subject: [PATCH] set supported_coalesce_params on kernel >= 5.7.0 --- modules/exanic/exanic-netdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/exanic/exanic-netdev.c b/modules/exanic/exanic-netdev.c index f1a473e..df58c25 100644 --- a/modules/exanic/exanic-netdev.c +++ b/modules/exanic/exanic-netdev.c @@ -1513,6 +1513,9 @@ static struct ethtool_ops exanic_ethtool_ops = { .get_priv_flags = exanic_netdev_get_priv_flags, .set_priv_flags = exanic_netdev_set_priv_flags, .get_sset_count = exanic_netdev_get_sset_count, +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0) + .supported_coalesce_params = ETHTOOL_COALESCE_USECS, +#endif .get_coalesce = exanic_netdev_get_coalesce, .set_coalesce = exanic_netdev_set_coalesce,