Bhargava Marreddy
bcc0f4c0f2
bng_en: add support for ethtool -S stats display
Implement the legacy ethtool statistics interface (get_sset_count,
get_strings, get_ethtool_stats) to expose hardware counters not
available through standard kernel stats APIs.
Ex:
a) Per-queue ring stats
rxq0_ucast_packets: 2
rxq0_mcast_packets: 0
rxq0_bcast_packets: 15
rxq0_ucast_bytes: 120
rxq0_mcast_bytes: 0
rxq0_bcast_bytes: 900
txq0_ucast_packets: 0
txq0_mcast_packets: 0
txq0_bcast_packets: 0
txq0_ucast_bytes: 0
txq0_mcast_bytes: 0
txq0_bcast_bytes: 0
b) Per-queue TPA(LRO/GRO) stats
rxq4_tpa_eligible_pkt: 0
rxq4_tpa_eligible_bytes: 0
rxq4_tpa_pkt: 0
rxq4_tpa_bytes: 0
rxq4_tpa_errors: 0
rxq4_tpa_events: 0
c) Port level stats
rxp_good_vlan_frames: 0
rxp_mtu_err_frames: 0
rxp_tagged_frames: 0
rxp_double_tagged_frames: 0
rxp_pfc_ena_frames_pri0: 0
rxp_pfc_ena_frames_pri1: 0
rxp_pfc_ena_frames_pri2: 0
rxp_pfc_ena_frames_pri3: 0
rxp_pfc_ena_frames_pri4: 0
rxp_pfc_ena_frames_pri5: 0
rxp_pfc_ena_frames_pri6: 0
rxp_pfc_ena_frames_pri7: 0
rxp_eee_lpi_events: 0
rxp_eee_lpi_duration: 0
rxp_runt_bytes: 0
rxp_runt_frames: 0
txp_good_vlan_frames: 0
txp_jabber_frames: 0
txp_fcs_err_frames: 0
txp_pfc_ena_frames_pri0: 0
txp_pfc_ena_frames_pri1: 0
txp_pfc_ena_frames_pri2: 0
txp_pfc_ena_frames_pri3: 0
txp_pfc_ena_frames_pri4: 0
txp_pfc_ena_frames_pri5: 0
txp_pfc_ena_frames_pri6: 0
txp_pfc_ena_frames_pri7: 0
txp_eee_lpi_events: 0
txp_eee_lpi_duration: 0
txp_xthol_frames: 0
d) Per-priority stats
rx_bytes_pri0: 4182650
rx_bytes_pri1: 4182650
rx_bytes_pri2: 4182650
rx_bytes_pri3: 4182650
rx_bytes_pri4: 4182650
rx_bytes_pri5: 4182650
rx_bytes_pri6: 4182650
rx_bytes_pri7: 4182650
Signed-off-by: Bhargava Marreddy <bhargava.marreddy@broadcom.com>
Reviewed-by: Vikas Gupta <vikas.gupta@broadcom.com>
Link: https://patch.msgid.link/20260406180420.279470-11-bhargava.marreddy@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-04-12 11:09:37 -07:00
..
2026-03-27 10:48:30 -06:00
2026-02-21 17:09:51 -08:00
2026-04-05 14:43:47 -07:00
2026-02-21 17:09:51 -08:00
2026-03-31 14:58:56 +02:00
2026-04-07 09:36:46 +02:00
2026-02-22 08:26:33 -08:00
2026-03-27 09:54:31 +01:00
2026-04-02 11:03:13 -07:00
2026-02-21 17:09:51 -08:00
2026-03-21 17:36:33 -07:00
2026-04-01 16:45:47 -04:00
2026-03-17 20:30:57 +01:00
2026-02-06 19:54:40 +00:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-26 14:34:21 -08:00
2026-03-26 12:09:57 -07:00
2026-02-22 08:26:33 -08:00
2026-04-02 14:40:27 +02:00
2026-02-21 20:03:00 -08:00
2026-03-22 15:59:22 +09:00
2026-04-01 16:08:15 +02:00
2026-03-10 16:03:02 +01:00
2026-04-02 17:29:48 -07:00
2026-03-19 15:12:40 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 01:02:28 -08:00
2026-02-21 20:03:00 -08:00
2026-03-04 18:48:15 -08:00
2026-02-21 17:09:51 -08:00
2026-03-17 16:33:32 +05:30
2026-02-21 20:03:00 -08:00
2026-04-12 08:27:34 -07:00
2026-02-22 08:26:33 -08:00
2026-02-21 17:09:51 -08:00
2026-02-22 08:26:33 -08:00
2026-03-16 19:29:45 -07:00
2026-04-06 09:03:19 -07:00
2026-02-21 20:03:00 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-04-02 14:30:40 +02:00
2026-04-09 13:20:59 -07:00
2026-04-05 12:42:25 -07:00
2026-02-21 20:03:00 -08:00
2026-04-08 13:38:30 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-04-04 05:25:53 +00:00
2026-04-01 07:45:57 -07:00
2026-02-10 20:45:30 -08:00
2026-02-21 20:03:00 -08:00
2026-03-27 13:51:21 +01:00
2026-03-11 22:50:29 +01:00
2026-01-07 21:17:43 +01:00
2026-03-29 15:27:12 +02:00
2026-04-02 11:03:13 -07:00
2026-04-04 08:24:32 -07:00
2026-03-14 12:53:13 +02:00
2026-04-09 08:36:31 -07:00
2026-02-21 20:03:00 -08:00
2026-03-31 10:11:29 +02:00
2026-02-21 20:03:00 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 20:03:00 -08:00
2026-02-21 01:02:28 -08:00
2026-02-21 17:09:51 -08:00
2026-02-22 08:26:33 -08:00
2026-03-26 13:14:07 +01:00
2026-02-21 17:09:51 -08:00
2026-02-22 08:26:33 -08:00
2026-02-22 08:26:33 -08:00
2026-02-21 20:03:00 -08:00
2026-04-02 14:42:19 +02:00
2026-03-16 16:08:54 +01:00
2026-02-21 17:09:51 -08:00
2026-03-18 18:08:25 +01:00
2026-02-21 17:09:51 -08:00
2026-04-12 11:09:37 -07:00
2026-04-09 13:20:59 -07:00
2026-02-21 11:02:58 -08:00
2026-02-21 17:09:51 -08:00
2026-03-09 09:38:22 -05:00
2026-03-13 10:13:06 -07:00
2026-04-02 16:44:40 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 20:03:00 -08:00
2026-02-22 08:26:33 -08:00
2026-02-21 17:09:51 -08:00
2026-04-07 10:29:54 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 20:03:00 -08:00
2026-04-02 11:03:13 -07:00
2026-03-23 14:23:09 +01:00
2026-03-31 17:22:28 +03:00
2026-03-20 09:46:15 -07:00
2026-02-21 17:09:51 -08:00
2026-03-04 09:16:41 +01:00
2026-02-22 08:26:33 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-17 19:06:19 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-10 14:52:42 +00:00
2026-03-05 10:18:23 -07:00
2026-03-13 14:17:30 +00:00
2026-03-23 12:25:47 +01:00
2026-02-21 17:09:51 -08:00
2026-02-22 09:43:11 -08:00
2026-04-03 17:50:24 -07:00
2026-02-21 17:09:51 -08:00
2026-04-02 11:03:13 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-17 20:30:57 +01:00
2026-04-01 13:47:03 +02:00
2026-02-22 08:26:33 -08:00
2026-03-30 21:34:53 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-19 14:16:00 -07:00
2026-03-19 22:07:39 -04:00
2026-02-21 17:09:51 -08:00
2026-03-03 09:03:04 +01:00
2026-04-02 11:37:35 +02:00
2026-03-09 12:36:54 +01:00
2026-03-30 17:39:44 +02:00
2026-03-07 11:08:39 -05:00
2026-02-21 17:09:51 -08:00
2026-04-02 13:28:22 +02:00
2026-02-22 08:26:33 -08:00
2026-03-26 06:38:27 -06:00
2026-03-12 10:59:36 +01:00
2026-03-05 17:35:12 +01:00
2026-03-20 21:05:50 -07:00
2026-03-20 11:33:24 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-26 08:57:51 +01:00
2026-02-21 17:09:51 -08:00
2026-02-04 20:45:26 +05:30