Subject: Re: [net PatchV2] Octeontx2-vf: Fix max packet length errors

From: Jakub Kicinski <[email-masked]>
Date: Wed, 16 Jul 2025 16:24:17 -0700

On Tue, 15 Jul 2025 16:43:51 +0530 Hariprasad Kelam wrote:
> +	netdev_stats_to_stats64(stats, &netdev->stats);
> +
>  	otx2_get_dev_stats(pfvf);
>  
>  	dev_stats = &pfvf->hw.dev_stats;
> @@ -149,7 +151,7 @@ void otx2_get_stats64(struct net_device *netdev,
>  
>  	stats->tx_bytes = dev_stats->tx_bytes;
>  	stats->tx_packets = dev_stats->tx_frames;
> -	stats->tx_dropped = dev_stats->tx_drops;
> +	stats->tx_dropped += dev_stats->tx_drops;

Please don't add new uses of netdev->stats.

	struct net_device_stats	stats; /* not used by modern drivers */
-- 
pw-bot: cr