lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260204212334.72b392af@kernel.org>
Date: Wed, 4 Feb 2026 21:23:34 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Tariq Toukan <tariqt@...dia.com>
Cc: Eric Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
 Andrew Lunn <andrew+netdev@...n.ch>, "David S. Miller"
 <davem@...emloft.net>, Saeed Mahameed <saeedm@...dia.com>, "Mark Bloch"
 <mbloch@...dia.com>, Leon Romanovsky <leon@...nel.org>,
 <netdev@...r.kernel.org>, <linux-rdma@...r.kernel.org>,
 <linux-kernel@...r.kernel.org>, Gal Pressman <gal@...dia.com>, Moshe
 Shemesh <moshe@...dia.com>, Dragos Tatulea <dtatulea@...dia.com>
Subject: Re: [PATCH net-next 2/5] net/mlx5e: Report hw_gro_packets and
 hw_gro_bytes netdev stats

On Wed, 4 Feb 2026 21:33:12 +0200 Tariq Toukan wrote:
> +	stats->hw_gro_packets =
> +		rq_stats->gro_packets + xskrq_stats->gro_packets;
> +	stats->hw_gro_bytes = rq_stats->gro_bytes + xskrq_stats->gro_bytes;

Doesn't look right.. 

mlx5e_shampo_flush_skb(struct mlx5e_rq *rq, struct mlx5_cqe64 *cqe, bool match) 
{                                                                               
        struct sk_buff *skb = rq->hw_gro_data->skb;                             
        struct mlx5e_rq_stats *stats = rq->stats;                               
        u16 gro_count = NAPI_GRO_CB(skb)->count;                                
                                                                                
        if (likely(skb_shinfo(skb)->nr_frags))                                  
                mlx5e_shampo_align_fragment(skb, rq->mpwqe.log_stride_sz);      
        if (gro_count > 1) {                                                    
                stats->gro_skbs++;                                              
                stats->gro_packets += gro_count;       

And:
      -
        name: rx-hw-gro-packets
        doc: |
          Number of packets that were coalesced from smaller packets by the
          device. Counts only packets coalesced with the HW-GRO netdevice
          feature, LRO-coalesced packets are not counted.

      -
        name: rx-hw-gro-wire-packets
        doc: |
          Number of packets that were coalesced to bigger packetss with the
          HW-GRO netdevice feature. LRO-coalesced packets are not counted.
        type: uint

Your gro_packets are "gro-wire-packets" and "gro-packets" are your
gro_skbs.

I really wish the AI was clever enough to catch uAPI mis-reading :(
-- 
pw-bot: cr

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ