Add support to retrieve hardware channel information
Subsystems (4)
Sathesh B Edara
maintainerv2 cover Add support to retrieve hardware channel information
This patch series introduces support for retrieving hardware channel configuration through the ethtool interface for both PF and VF.
Sathesh B Edara (2):
octeon_ep: Add support to retrieve hardware channel information
octeon_ep_vf: Add support to retrieve hardware channel information
drivers/net/ethernet/marvell/octeon_ep/octep_ethtool.c | 10 ++++++++++ .../ethernet/marvell/octeon_ep_vf/octep_vf_ethtool.c | 10 ++++++++++ 2 files changed, 20 insertions(+)
Find V1 here:
https://lore.kernel.org/netdev/[email protected]/
V2:
- Corrected channel counts to combined.
Signature · 1 line
2.36.0
Sathesh B Edara
maintainerPATCH v2 1/2 octeon_ep: Add support to retrieve hardware channel information
This patch introduces support for retrieving hardware channel configuration through the ethtool interface.
---
Find V1 here:
https://lore.kernel.org/netdev/[email protected]/
V2:
- Corrected channel counts to combined.
drivers/net/ethernet/marvell/octeon_ep/octep_ethtool.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
drivers/net/ethernet/marvell/octeon_ep/octep_ethtool.c +10 -0
@@ -437,6 +437,15 @@ static int octep_set_link_ksettings(struct net_device *netdev,return 0 ; } +static void octep_get_channels (struct net_device *dev, +struct ethtool_channels *channel) +{ +struct octep_device *oct =netdev_priv (dev); + + channel->max_combined =CFG_GET_PORTS_MAX_IO_RINGS (oct->conf); + channel->combined_count =CFG_GET_PORTS_ACTIVE_IO_RINGS (oct->conf); +} +static const struct ethtool_ops octep_ethtool_ops = { .get_drvinfo = octep_get_drvinfo, .get_link = ethtool_op_get_link,
@@ -445,6 +454,7 @@ static const struct ethtool_ops octep_ethtool_ops = { .get_ethtool_stats = octep_get_ethtool_stats, .get_link_ksettings = octep_get_link_ksettings, .set_link_ksettings = octep_set_link_ksettings, + .get_channels = octep_get_channels, };void octep_set_ethtool_ops (struct net_device *netdev)
Signature · 1 line
2.36.0
Re: [net-next PATCH v2 1/2] octeon_ep: Add support to retrieve hardware channel information
Quoted 10 lines · Sathesh B Edara
This patch introduces support for retrieving hardware channel configuration through the ethtool interface.
Signed-off-by Sathesh B Edara <[email protected]>---
Find V1 here:
https://lore.kernel.org/netdev/[email protected]/V2:
- Corrected channel counts to combined.
Sathesh B Edara
maintainerPATCH v2 2/2 octeon_ep_vf: Add support to retrieve hardware channel information
In reply to Sathesh B EdaraThis patch introduces support for retrieving hardware channel configuration through the ethtool interface.
---
Find V1 here:
https://lore.kernel.org/netdev/[email protected]/
V2:
- Corrected channel counts to combined.
.../ethernet/marvell/octeon_ep_vf/octep_vf_ethtool.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_ethtool.c +10 -0
@@ -244,6 +244,15 @@ static int octep_vf_get_link_ksettings(struct net_device *netdev,return 0 ; } +static void octep_vf_get_channels (struct net_device *dev, +struct ethtool_channels *channel) +{ +struct octep_vf_device *oct =netdev_priv (dev); + + channel->max_combined =CFG_GET_PORTS_MAX_IO_RINGS (oct->conf); + channel->combined_count =CFG_GET_PORTS_ACTIVE_IO_RINGS (oct->conf); +} +static const struct ethtool_ops octep_vf_ethtool_ops = { .get_drvinfo = octep_vf_get_drvinfo, .get_link = ethtool_op_get_link,
@@ -251,6 +260,7 @@ static const struct ethtool_ops octep_vf_ethtool_ops = { .get_sset_count = octep_vf_get_sset_count, .get_ethtool_stats = octep_vf_get_ethtool_stats, .get_link_ksettings = octep_vf_get_link_ksettings, + .get_channels = octep_vf_get_channels, };void octep_vf_set_ethtool_ops (struct net_device *netdev)
Signature · 1 line
2.36.0
Re: [net-next PATCH v2 2/2] octeon_ep_vf: Add support to retrieve hardware channel information
Quoted 10 lines · Sathesh B Edara
This patch introduces support for retrieving hardware channel configuration through the ethtool interface.
Signed-off-by Sathesh B Edara <[email protected]>---
Find V1 here:
https://lore.kernel.org/netdev/[email protected]/V2:
- Corrected channel counts to combined.
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Thu, 25 Sep 2025 05:51:32 -0700 you wrote:
This patch series introduces support for retrieving hardware channel configuration through the ethtool interface for both PF and VF.
Sathesh B Edara (2):
octeon_ep: Add support to retrieve hardware channel information
octeon_ep_vf: Add support to retrieve hardware channel information[...]
Here is the summary with links:
- [net-next,v2,1/2] octeon_ep: Add support to retrieve hardware channel information
https://git.kernel.org/netdev/net-next/c/24d15b6a17e2 - [net-next,v2,2/2] octeon_ep_vf: Add support to retrieve hardware channel information https://git.kernel.org/netdev/net-next/c/6294bcd423ae
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html