* [PATCH net-next] gve: Add counter adminq_get_ptype_map_cnt to stats report
@ 2024-03-25 22:33 John Fraker
2024-03-26 14:46 ` Simon Horman
2024-03-29 1:50 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: John Fraker @ 2024-03-25 22:33 UTC (permalink / raw)
To: netdev; +Cc: horms, John Fraker
This counter counts the number of times get_ptype_map is executed on the
admin queue, and was previously missing from the stats report.
Signed-off-by: John Fraker <jfraker@google.com>
---
drivers/net/ethernet/google/gve/gve_ethtool.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/google/gve/gve_ethtool.c b/drivers/net/ethernet/google/gve/gve_ethtool.c
index 9aebfb843..dbe05402d 100644
--- a/drivers/net/ethernet/google/gve/gve_ethtool.c
+++ b/drivers/net/ethernet/google/gve/gve_ethtool.c
@@ -73,7 +73,7 @@ static const char gve_gstrings_adminq_stats[][ETH_GSTRING_LEN] = {
"adminq_create_tx_queue_cnt", "adminq_create_rx_queue_cnt",
"adminq_destroy_tx_queue_cnt", "adminq_destroy_rx_queue_cnt",
"adminq_dcfg_device_resources_cnt", "adminq_set_driver_parameter_cnt",
- "adminq_report_stats_cnt", "adminq_report_link_speed_cnt"
+ "adminq_report_stats_cnt", "adminq_report_link_speed_cnt", "adminq_get_ptype_map_cnt"
};
static const char gve_gstrings_priv_flags[][ETH_GSTRING_LEN] = {
@@ -428,6 +428,7 @@ gve_get_ethtool_stats(struct net_device *netdev,
data[i++] = priv->adminq_set_driver_parameter_cnt;
data[i++] = priv->adminq_report_stats_cnt;
data[i++] = priv->adminq_report_link_speed_cnt;
+ data[i++] = priv->adminq_get_ptype_map_cnt;
}
static void gve_get_channels(struct net_device *netdev,
--
2.44.0.291.gc1ea87d7ee-goog
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] gve: Add counter adminq_get_ptype_map_cnt to stats report
2024-03-25 22:33 [PATCH net-next] gve: Add counter adminq_get_ptype_map_cnt to stats report John Fraker
@ 2024-03-26 14:46 ` Simon Horman
2024-03-29 1:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2024-03-26 14:46 UTC (permalink / raw)
To: John Fraker
Cc: netdev, Jeroen de Borst, Praveen Kaligineedi, Shailend Chand,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Willem de Bruijn, Harshitha Ramamurthy, Junfeng Guo
+ Jeroen de Borst, Praveen Kaligineedi, Shailend Chand, David Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Willem de Bruijn,
Harshitha Ramamurthy, Junfeng Guo
On Mon, Mar 25, 2024 at 03:33:08PM -0700, John Fraker wrote:
> This counter counts the number of times get_ptype_map is executed on the
> admin queue, and was previously missing from the stats report.
>
> Signed-off-by: John Fraker <jfraker@google.com>
> ---
> drivers/net/ethernet/google/gve/gve_ethtool.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Thanks John,
this looks good to me.
Reviewed-by: Simon Horman <horms@kernel.org>
In future, please consider using ./scripts/get_maintainer.pl file.patch
to seed the CC list when posting patches to netdev.
> diff --git a/drivers/net/ethernet/google/gve/gve_ethtool.c b/drivers/net/ethernet/google/gve/gve_ethtool.c
> index 9aebfb843..dbe05402d 100644
> --- a/drivers/net/ethernet/google/gve/gve_ethtool.c
> +++ b/drivers/net/ethernet/google/gve/gve_ethtool.c
> @@ -73,7 +73,7 @@ static const char gve_gstrings_adminq_stats[][ETH_GSTRING_LEN] = {
> "adminq_create_tx_queue_cnt", "adminq_create_rx_queue_cnt",
> "adminq_destroy_tx_queue_cnt", "adminq_destroy_rx_queue_cnt",
> "adminq_dcfg_device_resources_cnt", "adminq_set_driver_parameter_cnt",
> - "adminq_report_stats_cnt", "adminq_report_link_speed_cnt"
> + "adminq_report_stats_cnt", "adminq_report_link_speed_cnt", "adminq_get_ptype_map_cnt"
> };
>
> static const char gve_gstrings_priv_flags[][ETH_GSTRING_LEN] = {
> @@ -428,6 +428,7 @@ gve_get_ethtool_stats(struct net_device *netdev,
> data[i++] = priv->adminq_set_driver_parameter_cnt;
> data[i++] = priv->adminq_report_stats_cnt;
> data[i++] = priv->adminq_report_link_speed_cnt;
> + data[i++] = priv->adminq_get_ptype_map_cnt;
> }
>
> static void gve_get_channels(struct net_device *netdev,
> --
> 2.44.0.291.gc1ea87d7ee-goog
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] gve: Add counter adminq_get_ptype_map_cnt to stats report
2024-03-25 22:33 [PATCH net-next] gve: Add counter adminq_get_ptype_map_cnt to stats report John Fraker
2024-03-26 14:46 ` Simon Horman
@ 2024-03-29 1:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-03-29 1:50 UTC (permalink / raw)
To: John Fraker; +Cc: netdev, horms
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 25 Mar 2024 15:33:08 -0700 you wrote:
> This counter counts the number of times get_ptype_map is executed on the
> admin queue, and was previously missing from the stats report.
>
> Signed-off-by: John Fraker <jfraker@google.com>
> ---
> drivers/net/ethernet/google/gve/gve_ethtool.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Here is the summary with links:
- [net-next] gve: Add counter adminq_get_ptype_map_cnt to stats report
https://git.kernel.org/netdev/net-next/c/3bcbc67be1b7
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-29 1:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-25 22:33 [PATCH net-next] gve: Add counter adminq_get_ptype_map_cnt to stats report John Fraker
2024-03-26 14:46 ` Simon Horman
2024-03-29 1:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).