[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <8d8700c8-75b2-49ba-b303-b8d619008e45@gmail.com>
Date: Sat, 6 Jan 2024 23:17:49 +0100
From: Heiner Kallweit <hkallweit1@...il.com>
To: Andrew Lunn <andrew@...n.ch>, Russell King <rmk+kernel@...linux.org.uk>,
Jakub Kicinski <kuba@...nel.org>, Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>, David Miller <davem@...emloft.net>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: [PATCH v2 RFC 0/5] ethtool: switch EEE netlink interface to use EEE
linkmode bitmaps
So far only 32bit legacy bitmaps are passed to userspace. This makes
it impossible to manage EEE linkmodes beyond bit 32, e.g. manage EEE
for 2500BaseT and 5000BaseT. This series adds support for passing
full linkmode bitmaps between kernel and userspace.
Fortunately the netlink-based part of ethtool is quite smart and no
changes are needed in ethtool. However this applies to the netlink
interface only, the ioctl interface for now remains restricted to
legacy bitmaps.
Next step will be adding support for the c45 EEE2 standard registers
(3.21, 7.62, 7.63) to the genphy_c45 functions dealing with EEE.
I have a follow-up series for this ready to be submitted.
v2:
- now as RFC
- adopt suggestion from Andrew to start with struct ethtool_keee
being an identical copy of ethtool_eee, and switch all users
Heiner Kallweit (5):
ethtool: replace struct ethtool_eee with a new struct ethtool_keee on
kernel side
ethtool: switch back from ethtool_keee to ethtool_eee for ioctl
ethtool: adjust struct ethtool_keee to kernel needs
ethtool: add linkmode bitmap support to struct ethtool_keee
net: phy: c45: change genphy_c45_ethtool_[get|set]_eee to use EEE
linkmode bitmaps
drivers/net/dsa/b53/b53_common.c | 10 +--
drivers/net/dsa/b53/b53_priv.h | 6 +-
drivers/net/dsa/bcm_sf2.c | 2 +-
drivers/net/dsa/microchip/ksz_common.c | 4 +-
drivers/net/dsa/mt7530.c | 4 +-
drivers/net/dsa/mv88e6xxx/chip.c | 4 +-
drivers/net/dsa/qca/qca8k-common.c | 4 +-
drivers/net/dsa/qca/qca8k.h | 4 +-
.../ethernet/aquantia/atlantic/aq_ethtool.c | 4 +-
drivers/net/ethernet/broadcom/asp2/bcmasp.h | 2 +-
.../ethernet/broadcom/asp2/bcmasp_ethtool.c | 8 +--
.../ethernet/broadcom/bnx2x/bnx2x_ethtool.c | 4 +-
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 8 +--
drivers/net/ethernet/broadcom/bnxt/bnxt.h | 2 +-
.../net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 6 +-
.../net/ethernet/broadcom/genet/bcmgenet.c | 8 +--
.../net/ethernet/broadcom/genet/bcmgenet.h | 2 +-
drivers/net/ethernet/broadcom/tg3.c | 10 +--
drivers/net/ethernet/broadcom/tg3.h | 2 +-
drivers/net/ethernet/engleder/tsnep_main.c | 6 +-
drivers/net/ethernet/freescale/enetc/enetc.c | 4 +-
drivers/net/ethernet/freescale/fec.h | 2 +-
drivers/net/ethernet/freescale/fec_main.c | 10 +--
drivers/net/ethernet/freescale/gianfar.c | 4 +-
drivers/net/ethernet/intel/e1000e/ethtool.c | 6 +-
.../net/ethernet/intel/i40e/i40e_ethtool.c | 6 +-
drivers/net/ethernet/intel/igb/igb_ethtool.c | 8 +--
drivers/net/ethernet/intel/igc/igc.h | 2 +-
drivers/net/ethernet/intel/igc/igc_ethtool.c | 8 +--
.../net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 10 +--
drivers/net/ethernet/marvell/mvneta.c | 4 +-
.../net/ethernet/microchip/lan743x_ethtool.c | 4 +-
.../net/ethernet/qlogic/qede/qede_ethtool.c | 4 +-
drivers/net/ethernet/realtek/r8169_main.c | 4 +-
.../ethernet/samsung/sxgbe/sxgbe_ethtool.c | 4 +-
.../ethernet/stmicro/stmmac/stmmac_ethtool.c | 4 +-
drivers/net/ethernet/ti/am65-cpsw-ethtool.c | 4 +-
drivers/net/ethernet/ti/cpsw_ethtool.c | 4 +-
drivers/net/ethernet/ti/cpsw_priv.h | 4 +-
drivers/net/ethernet/ti/icssg/icssg_ethtool.c | 4 +-
drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.c | 2 +-
drivers/net/phy/marvell.c | 2 +-
drivers/net/phy/phy-c45.c | 44 +++++-------
drivers/net/phy/phy.c | 8 +--
drivers/net/phy/phylink.c | 8 +--
drivers/net/usb/ax88179_178a.c | 10 +--
drivers/net/usb/lan78xx.c | 4 +-
drivers/net/usb/r8152.c | 14 ++--
include/linux/ethtool.h | 19 ++++-
include/linux/phy.h | 8 +--
include/linux/phylink.h | 4 +-
include/net/dsa.h | 4 +-
net/dsa/user.c | 4 +-
net/ethtool/common.c | 5 ++
net/ethtool/common.h | 1 +
net/ethtool/eee.c | 71 ++++++++++++-------
net/ethtool/ioctl.c | 71 ++++++++++++++++---
57 files changed, 283 insertions(+), 196 deletions(-)
--
2.43.0
Powered by blists - more mailing lists