Skip to content

Commit 3bcbc67

Browse files
jfrakerkuba-moo
authored andcommitted
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. Signed-off-by: John Fraker <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c602f4c commit 3bcbc67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/google/gve/gve_ethtool.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static const char gve_gstrings_adminq_stats[][ETH_GSTRING_LEN] = {
7373
"adminq_create_tx_queue_cnt", "adminq_create_rx_queue_cnt",
7474
"adminq_destroy_tx_queue_cnt", "adminq_destroy_rx_queue_cnt",
7575
"adminq_dcfg_device_resources_cnt", "adminq_set_driver_parameter_cnt",
76-
"adminq_report_stats_cnt", "adminq_report_link_speed_cnt"
76+
"adminq_report_stats_cnt", "adminq_report_link_speed_cnt", "adminq_get_ptype_map_cnt"
7777
};
7878

7979
static const char gve_gstrings_priv_flags[][ETH_GSTRING_LEN] = {
@@ -428,6 +428,7 @@ gve_get_ethtool_stats(struct net_device *netdev,
428428
data[i++] = priv->adminq_set_driver_parameter_cnt;
429429
data[i++] = priv->adminq_report_stats_cnt;
430430
data[i++] = priv->adminq_report_link_speed_cnt;
431+
data[i++] = priv->adminq_get_ptype_map_cnt;
431432
}
432433

433434
static void gve_get_channels(struct net_device *netdev,

0 commit comments

Comments
 (0)