gve: Add counter adminq_get_ptype_map_cnt to stats report
Subsystems (3)
PATCH 1/1 gve: Add counter adminq_get_ptype_map_cnt to stats report
This counter counts the number of times get_ptype_map is executed on the admin queue, and was previously missing from the stats report.
--- drivers/net/ethernet/google/gve/gve_ethtool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/google/gve/gve_ethtool.c +2 -1
@@ -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,
Signature · 1 line
2.44.0.291.gc1ea87d7ee-goog
Simon Horman
reviewerQuoted 5 lines · John Fraker
This counter counts the number of times
get_ptype_mapis executed on the admin queue, and was previously missing from the stats report.Fixes c4b87ac87635 ("gve: Add support for DQO RX PTYPE map")Signed-off-by John Fraker <[email protected]>
Hi John,
I'm fine with this patch but it feels more like an enhancement for net-next than a fix for net.
If so, please drop the Fixes tag and repost next week after net-next has reopened.
Quoted 9 lines
--- drivers/net/ethernet/google/gve/gve_ethtool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/net/ethernet/google/gve/gve_ethtool.c +0
-0
drivers/net/ethernet/google/gve/gve_ethtool.c static const char gve_gstrings_adminq_stats[][ETH_GSTRING_LEN] = { · line 76
Quoted 5 lines
drivers/net/ethernet/google/gve/gve_ethtool.c +1
-1@@ -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"
If you do repost, please consider reformatting this so the lines remain no longer than 80 characters.
Quoted 15 lines
drivers/net/ethernet/google/gve/gve_ethtool.c +1
-0};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,Signature · 1 line
2.44.0.291.gc1ea87d7ee-goog
A message that is not in the archive (sent off-list or not yet received): CAGH0z2E0Pw1nXueBggqdRhkdJLni+cPMA=dQg_jWQ3nmszu+Sg@mail.gmail.com
Simon Horman
reviewerQuoted 14 lines · John Fraker
Quoted 12 lines · Simon Horman
Quoted 5 lines · John Fraker
This counter counts the number of times
get_ptype_mapis executed on the admin queue, and was previously missing from the stats report.Fixes c4b87ac87635 ("gve: Add support for DQO RX PTYPE map")Signed-off-by John Fraker <[email protected]>Hi John,
I'm fine with this patch but it feels more like an enhancement for net-next than a fix for net.
Quoted 7 lines
Quoted 3 lines
If so, please drop the Fixes tag and repost next week after net-next has reopened.
Thanks Simon, I wasn't quite sure where the line was for inclusion in net, I'll resubmit once the window opens.
Thanks John, I appreciate that it is subjective.
Signature · 1 line
pw-bot: changes-requested