diff mbox series

[net] gve: Add counter adminq_get_ptype_map_cnt to stats report

Message ID 20240321222020.31032-1-jfraker@google.com (mailing list archive)
State Superseded
Delegated to: Netdev Maintainers
Headers show
Series [net] gve: Add counter adminq_get_ptype_map_cnt to stats report | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag present in non-next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 939 this patch: 939
netdev/build_tools success No tools touched, skip
netdev/cc_maintainers fail 3 blamed authors not CCed: csully@google.com willemb@google.com bcf@google.com; 9 maintainers not CCed: pabeni@redhat.com bcf@google.com jeroendb@google.com kuba@kernel.org shailend@google.com csully@google.com edumazet@google.com willemb@google.com pkaligineedi@google.com
netdev/build_clang success Errors and warnings before: 959 this patch: 959
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 956 this patch: 956
netdev/checkpatch warning WARNING: line length of 93 exceeds 80 columns
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/contest warning net-next-2024-03-22--18-00 (tests: 578)

Commit Message

John Fraker March 21, 2024, 10:20 p.m. UTC
This counter counts the number of times get_ptype_map is 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 <jfraker@google.com>
---
 drivers/net/ethernet/google/gve/gve_ethtool.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Simon Horman March 22, 2024, 1:09 p.m. UTC | #1
On Thu, Mar 21, 2024 at 03:20:20PM -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.
> 
> Fixes: c4b87ac87635 ("gve: Add support for DQO RX PTYPE map")
> Signed-off-by: John Fraker <jfraker@google.com>

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.

> ---
>  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"

If you do repost, please consider reformatting this so the lines
remain no longer than 80 characters.

>  };
>  
>  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
> 
>
Simon Horman March 22, 2024, 8:04 p.m. UTC | #2
On Fri, Mar 22, 2024 at 10:58:43AM -0700, John Fraker wrote:
> On Fri, Mar 22, 2024 at 6:09 AM Simon Horman <horms@kernel.org> wrote:
> 
> > On Thu, Mar 21, 2024 at 03:20:20PM -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.
> > >
> > > Fixes: c4b87ac87635 ("gve: Add support for DQO RX PTYPE map")
> > > Signed-off-by: John Fraker <jfraker@google.com>
> >
> > 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.
> >
> 
> 
> 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.
diff mbox series

Patch

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,