summaryrefslogtreecommitdiff
path: root/include/linux/ethtool.h
diff options
context:
space:
mode:
authorDanielle Ratson <danieller@nvidia.com>2021-02-02 21:06:07 +0300
committerJakub Kicinski <kuba@kernel.org>2021-02-04 05:37:29 +0300
commitc8907043c6ac9ed58e6c1a76f2824be714b42228 (patch)
treef9361d4a8cb2685b05aa3be678bb0008e58ebe2b /include/linux/ethtool.h
parent012ce4dd3102a0f4d80167de343e9d44b257c1b8 (diff)
downloadlinux-c8907043c6ac9ed58e6c1a76f2824be714b42228.tar.xz
ethtool: Get link mode in use instead of speed and duplex parameters
Currently, when user space queries the link's parameters, as speed and duplex, each parameter is passed from the driver to ethtool. Instead, get the link mode bit in use, and derive each of the parameters from it in ethtool. Signed-off-by: Danielle Ratson <danieller@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/ethtool.h')
-rw-r--r--include/linux/ethtool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index 1ab13c5dfb2f..ec4cd3921c67 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -129,6 +129,7 @@ struct ethtool_link_ksettings {
__ETHTOOL_DECLARE_LINK_MODE_MASK(lp_advertising);
} link_modes;
u32 lanes;
+ enum ethtool_link_mode_bit_indices link_mode;
};
/**