• Khalid Manaa's avatar
    net/mlx5e: Add HW_GRO statistics · def09e7b
    Khalid Manaa authored
    This patch adds HW_GRO counters to RX packets statistics:
     - gro_match_packets: counter of received packets with set match flag.
    
     - gro_packets: counter of received packets over the HW_GRO feature,
                    this counter is increased by one for every received
                    HW_GRO cqe.
    
     - gro_bytes: counter of received bytes over the HW_GRO feature,
                  this counter is increased by the received bytes for every
                  received HW_GRO cqe.
    
     - gro_skbs: counter of built HW_GRO skbs,
                 increased by one when we flush HW_GRO skb
                 (when we call a napi_gro_receive with hw_gro skb).
    
     - gro_large_hds: counter of received packets with large headers size,
                      in case the packet needs new SKB, the driver will allocate
                      new one and will not use the headers entry to build it.
    Signed-off-by: default avatarKhalid Manaa <khalidm@nvidia.com>
    Reviewed-by: default avatarTariq Toukan <tariqt@nvidia.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
    def09e7b
en_stats.h 13.4 KB