diff options
author | Antonio Cardace <acardace@redhat.com> | 2020-11-18 21:45:18 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-20 12:51:54 -0800 |
commit | 77f9591b21ed2bcf46c54b13a107fcfbcd6dc988 (patch) | |
tree | 419d93ad64dd3f0d94e7d16b32097bd4ab03a29e /drivers/net/netdevsim/netdevsim.h | |
parent | 4ae21993f07422ec1cb83e9530f87fa61bff02bd (diff) | |
download | linux-77f9591b21ed2bcf46c54b13a107fcfbcd6dc988.tar.gz |
netdevsim: move ethtool pause params in separate struct
This will help the refactoring in the next commit
when coalesce and ring settings are added.
Signed-off-by: Antonio Cardace <acardace@redhat.com>
Reviewed-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/netdevsim/netdevsim.h')
-rw-r--r-- | drivers/net/netdevsim/netdevsim.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/netdevsim/netdevsim.h b/drivers/net/netdevsim/netdevsim.h index 698be048041b..700ac593c4ec 100644 --- a/drivers/net/netdevsim/netdevsim.h +++ b/drivers/net/netdevsim/netdevsim.h @@ -51,13 +51,17 @@ struct nsim_ipsec { u32 ok; }; -struct nsim_ethtool { +struct nsim_ethtool_pauseparam { bool rx; bool tx; bool report_stats_rx; bool report_stats_tx; }; +struct nsim_ethtool { + struct nsim_ethtool_pauseparam pauseparam; +}; + struct netdevsim { struct net_device *netdev; struct nsim_dev *nsim_dev; |