Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <jfraker@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240325223308.618671-1-jfraker@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

John Fraker and committed by
Jakub Kicinski
3bcbc67b c602f4ca

+2 -1
+2 -1
drivers/net/ethernet/google/gve/gve_ethtool.c
··· 73 73 "adminq_create_tx_queue_cnt", "adminq_create_rx_queue_cnt", 74 74 "adminq_destroy_tx_queue_cnt", "adminq_destroy_rx_queue_cnt", 75 75 "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" 77 77 }; 78 78 79 79 static const char gve_gstrings_priv_flags[][ETH_GSTRING_LEN] = { ··· 428 428 data[i++] = priv->adminq_set_driver_parameter_cnt; 429 429 data[i++] = priv->adminq_report_stats_cnt; 430 430 data[i++] = priv->adminq_report_link_speed_cnt; 431 + data[i++] = priv->adminq_get_ptype_map_cnt; 431 432 } 432 433 433 434 static void gve_get_channels(struct net_device *netdev,