ethtool: Get link mode in use instead of speed and duplex parameters
authorDanielle Ratson <danieller@nvidia.com>
Tue, 2 Feb 2021 18:06:07 +0000 (20:06 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Feb 2021 02:37:29 +0000 (18:37 -0800)
commitc8907043c6ac9ed58e6c1a76f2824be714b42228
treef9361d4a8cb2685b05aa3be678bb0008e58ebe2b
parent012ce4dd3102a0f4d80167de343e9d44b257c1b8
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>
include/linux/ethtool.h
net/ethtool/common.c
net/ethtool/common.h
net/ethtool/ioctl.c
net/ethtool/linkmodes.c