]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitacdc0cd88ec6906de41cb68cf1977d9569ad8d49
treef9361d4a8cb2685b05aa3be678bb0008e58ebe2b
parent072ff590edbff711bc19122dd1f17978463e0cfd
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