summaryrefslogtreecommitdiffstats
path: root/include/linux/ethtool.h
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2024-01-27 14:26:50 +0100
committerDavid S. Miller <davem@davemloft.net>2024-01-31 12:30:47 +0000
commit285cc15cc555b4f05ebf2556bc6e85a6d36b790a (patch)
tree82898bee722bee83cc23354f4ae64dd52e113f86 /include/linux/ethtool.h
parent0b3100bc8fa7a05804737dba96075ea8d45316ce (diff)
downloadlinux-285cc15cc555b4f05ebf2556bc6e85a6d36b790a.tar.gz
linux-285cc15cc555b4f05ebf2556bc6e85a6d36b790a.tar.bz2
linux-285cc15cc555b4f05ebf2556bc6e85a6d36b790a.zip
ethtool: adjust struct ethtool_keee to kernel needs
This patch changes the following in struct ethtool_keee - remove member cmd, it's not needed on kernel side - remove reserved fields - switch the semantically boolean members to type bool We don't have to change any user of the boolean members due to the implicit casting from/to bool. A small change is needed where a pointer to bool members is used, in addition remove few now unneeded double negations. Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/ethtool.h')
-rw-r--r--include/linux/ethtool.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index a850bab8489f..14549cb9e2b2 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -223,15 +223,13 @@ __ethtool_get_link_ksettings(struct net_device *dev,
struct ethtool_link_ksettings *link_ksettings);
struct ethtool_keee {
- u32 cmd;
u32 supported;
u32 advertised;
u32 lp_advertised;
- u32 eee_active;
- u32 eee_enabled;
- u32 tx_lpi_enabled;
u32 tx_lpi_timer;
- u32 reserved[2];
+ bool tx_lpi_enabled;
+ bool eee_active;
+ bool eee_enabled;
};
struct kernel_ethtool_coalesce {