Message ID | 7d82de21-9bde-4f66-99ce-f03ff994ef34@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | ethtool: switch EEE netlink interface to use EEE linkmode bitmaps | expand |
On Sat, Jan 27, 2024 at 02:24:05PM +0100, Heiner Kallweit wrote: > 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. I tend to disagree. The next step should be to work on each driver still using supported_32 etc and convert them to use plain supported. What i don't want is this conversion left half done. I said i'm happy to help convert the remaining drivers, so lets work on that. My happy to merge this patchset, its a good intermediary step which allows each driver to be converted on its own. But i'm likely to NACK EEE2 until the _32 are gone. Andrew
On 29.01.2024 01:10, Andrew Lunn wrote: > On Sat, Jan 27, 2024 at 02:24:05PM +0100, Heiner Kallweit wrote: >> 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. > > I tend to disagree. The next step should be to work on each driver > still using supported_32 etc and convert them to use plain supported. > > What i don't want is this conversion left half done. I said i'm happy > to help convert the remaining drivers, so lets work on that. > Fine with me, EEE2 can wait until this is done. > My happy to merge this patchset, its a good intermediary step which > allows each driver to be converted on its own. But i'm likely to NACK > EEE2 until the _32 are gone. > > Andrew Heiner
Hello: This series was applied to netdev/net-next.git (main) by David S. Miller <davem@davemloft.net>: On Sat, 27 Jan 2024 14:24:05 +0100 you wrote: > 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. > > [...] Here is the summary with links: - [net-next,v4,1/6] ethtool: replace struct ethtool_eee with a new struct ethtool_keee on kernel side https://git.kernel.org/netdev/net-next/c/d80a52335374 - [net-next,v4,2/6] ethtool: switch back from ethtool_keee to ethtool_eee for ioctl https://git.kernel.org/netdev/net-next/c/0b3100bc8fa7 - [net-next,v4,3/6] ethtool: adjust struct ethtool_keee to kernel needs https://git.kernel.org/netdev/net-next/c/285cc15cc555 - [net-next,v4,4/6] ethtool: add suffix _u32 to legacy bitmap members of struct ethtool_keee https://git.kernel.org/netdev/net-next/c/1d756ff13da6 - [net-next,v4,5/6] ethtool: add linkmode bitmap support to struct ethtool_keee https://git.kernel.org/netdev/net-next/c/1f069de63602 - [net-next,v4,6/6] net: phy: c45: change genphy_c45_ethtool_[get|set]_eee to use EEE linkmode bitmaps https://git.kernel.org/netdev/net-next/c/2bb052612959 You are awesome, thank you!