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] [day] [month] [year] [list]
Message-ID: <CANXQDtYmYuUViG+9oOwETjBsyuJ1Gt8GPSKgn9oHCx9TokVLxQ@mail.gmail.com>
Date: Tue, 25 Nov 2025 15:06:57 +0530
From: Bhargava Chenna Marreddy <bhargava.marreddy@...adcom.com>
To: ALOK TIWARI <alok.a.tiwari@...cle.com>
Cc: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org, 
	pabeni@...hat.com, andrew+netdev@...n.ch, horms@...nel.org, 
	netdev@...r.kernel.org, linux-kernel@...r.kernel.org, 
	michael.chan@...adcom.com, pavan.chebbi@...adcom.com, 
	vsrama-krishna.nemani@...adcom.com, vikas.gupta@...adcom.com, 
	Rajashekar Hudumula <rajashekar.hudumula@...adcom.com>
Subject: Re: [External] : [v2, net-next 10/12] bng_en: Add initial support for
 ethtool stats display

On Wed, Nov 19, 2025 at 7:37 PM ALOK TIWARI <alok.a.tiwari@...cle.com> wrote:
> > +     BNGE_TX_STATS_ENTRY(tx_pause_frames),
> > +     BNGE_TX_STATS_ENTRY(tx_pfc_frames),
> > +     BNGE_TX_STATS_ENTRY(tx_jabber_frames),
> > +     BNGE_TX_STATS_ENTRY(tx_fcs_err_frames),
> > +     BNGE_TX_STATS_ENTRY(tx_err),
> > +     BNGE_TX_STATS_ENTRY(tx_fifo_underruns),
> > +     BNGE_TX_STATS_ENTRY(tx_pfc_ena_frames_pri0),
> > +     BNGE_TX_STATS_ENTRY(tx_pfc_ena_frames_pri1),
> > +     BNGE_TX_STATS_ENTRY(tx_pfc_ena_frames_pri2),
> > +     BNGE_TX_STATS_ENTRY(tx_pfc_ena_frames_pri3),
> > +     BNGE_TX_STATS_ENTRY(tx_pfc_ena_frames_pri4),
> > +     BNGE_TX_STATS_ENTRY(tx_pfc_ena_frames_pri5),
> > +     BNGE_TX_STATS_ENTRY(tx_pfc_ena_frames_pri6),
> > +     BNGE_TX_STATS_ENTRY(tx_pfc_ena_frames_pri7),
> > +     BNGE_TX_STATS_ENTRY(tx_eee_lpi_events),
> > +     BNGE_TX_STATS_ENTRY(tx_eee_lpi_duration),
> > +     BNGE_TX_STATS_ENTRY(tx_total_collisions),
> > +     BNGE_TX_STATS_ENTRY(tx_bytes),
> > +     BNGE_TX_STATS_ENTRY(tx_xthol_frames),
> > +     BNGE_TX_STATS_ENTRY(tx_stat_discard),
> > +     BNGE_TX_STATS_ENTRY(tx_stat_error),
>
> RX uses rx_stat_err. Consider using consistent err/error
> same for rx_jbr_frames and tx_jabber_frames

It is consistent with the shared firmware header struct, so we prefer
to keep it like this.

Thanks,
Bhargava Marreddy

>
> > +};
> > +
> > +static const struct {
> > +     long offset;
> > +     char string[ETH_GSTRING_LEN];
> > +} bnge_port_stats_ext_arr[] = {
> > +     BNGE_RX_STATS_EXT_ENTRY(link_down_events),
> > +     BNGE_RX_STATS_EXT_ENTRY(continuous_pause_events),
> > +     BNGE_RX_STATS_EXT_ENTRY(resume_pause_events),
> > +     BNGE_RX_STATS_EXT_ENTRY(continuous_roce_pause_events),
> > +     BNGE_RX_STATS_EXT_ENTRY(resume_roce_pause_events),
> > +     BNGE_RX_STATS_EXT_COS_ENTRIES,
> > +     BNGE_RX_STATS_EXT_PFC_ENTRIES,
> > +     BNGE_RX_STATS_EXT_ENTRY(rx_bits),
> > +     BNGE_RX_STATS_EXT_ENTRY(rx_buffer_passed_threshold),
> > +     BNGE_RX_STATS_EXT_ENTRY(rx_pcs_symbol_err),
> > +     BNGE_RX_STATS_EXT_ENTRY(rx_corrected_bits),
> > +     BNGE_RX_STATS_EXT_DISCARD_COS_ENTRIES,
> > +     BNGE_RX_STATS_EXT_ENTRY(rx_fec_corrected_blocks),
> > +     BNGE_RX_STATS_EXT_ENTRY(rx_fec_uncorrectable_blocks),
> > +     BNGE_RX_STATS_EXT_ENTRY(rx_filter_miss),
> > +};
> > +
> Thanks,
> Alok

Download attachment "smime.p7s" of type "application/pkcs7-signature" (5496 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ