[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1677034396395.39388@alliedtelesis.co.nz>
Date: Wed, 22 Feb 2023 02:53:17 +0000
From: Aryan Srivastava <Aryan.Srivastava@...iedtelesis.co.nz>
To: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: EEE support for 2.5G/5G
Hi,
I am currently in the process of implementing EEE (energy-efficient ethernet) ethtool get/set on my PHY driver. There are generic functions to achieve this, but they do not currently have the capability to set or check for 2.5G and 5G EEE LPI.
I had begun to add these additional modes when I realised this was not possible as the EEE ethtool command struct, only has 32-bit fields, and the ethtool bit mask for the 2.5G and 5G modes is 47 and 48 respectively.
I could of course use custom functions to achieve my objective, but I would like to ask if my understanding of the situation is correct.
To my knowledge, there is no framework currently in place to set 2.5G/5G EE through generic phy functions, and it cannot be implemented currently due to the size of the bit fields in the ethtool command. Are there any other places I should be looking at for this functionality? Further from this, is it time to create a new ethtool command for EEE (similar to set/get settings) that can account for these new speeds?
Thank you,
I look forward to your reply,
Aryan Srivastava,
Allied Telesis NZ
Powered by blists - more mailing lists