summaryrefslogtreecommitdiff
path: root/drivers/net/netdevsim/netdevsim.h
diff options
context:
space:
mode:
authorAntonio Cardace <[email protected]>2020-11-18 21:45:19 +0100
committerJakub Kicinski <[email protected]>2020-11-20 12:51:54 -0800
commita7fc6db099b5cb0278935f6015cd7a0bb11bcb51 (patch)
tree06c8f8182d0fa01965f6a4abad8fc60437d90206 /drivers/net/netdevsim/netdevsim.h
parent77f9591b21ed2bcf46c54b13a107fcfbcd6dc988 (diff)
netdevsim: support ethtool ring and coalesce settings
Add ethtool ring and coalesce settings support for testing. Signed-off-by: Antonio Cardace <[email protected]> Reviewed-by: Michal Kubecek <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/netdevsim/netdevsim.h')
-rw-r--r--drivers/net/netdevsim/netdevsim.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/netdevsim/netdevsim.h b/drivers/net/netdevsim/netdevsim.h
index 700ac593c4ec..19b1e6ef5573 100644
--- a/drivers/net/netdevsim/netdevsim.h
+++ b/drivers/net/netdevsim/netdevsim.h
@@ -15,6 +15,7 @@
#include <linux/debugfs.h>
#include <linux/device.h>
+#include <linux/ethtool.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/netdevice.h>
@@ -60,6 +61,8 @@ struct nsim_ethtool_pauseparam {
struct nsim_ethtool {
struct nsim_ethtool_pauseparam pauseparam;
+ struct ethtool_coalesce coalesce;
+ struct ethtool_ringparam ring;
};
struct netdevsim {