Skip to contentSkip to conversation

Revert "net/ice: count drop-all filter in Rx stats"

PATCH In review Jeff Shaw 2 participants 3 messages Oct 20, 2025 – Oct 21, 2025 Network drivers

lore
Share & tools
lore

Jeff Shaw

author
#0 lore raw

PATCH 1/1 Revert "net/ice: count drop-all filter in Rx stats"

This reverts commit af05f9e37153c53335938bcde2978a359c5f4efa.

A side effect of this patch is that it also counts frames which are dropped when the PF receives frames not destined for it when promiscuous mode is disabled.

---
 drivers/net/intel/ice/ice_ethdev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/intel/ice/ice_ethdev.c +1 -2
index a9a49cd924..9d0fbd2a5a 100644
@@ -6353,13 +6353,12 @@ ice_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
 
 	stats->ipackets = pf->main_vsi->eth_stats.rx_unicast +
 			  pf->main_vsi->eth_stats.rx_multicast +
-			  ns->eth.rx_unknown_protocol +
 			  pf->main_vsi->eth_stats.rx_broadcast -
 			  pf->main_vsi->eth_stats.rx_discards;
 	stats->opackets = ns->eth.tx_unicast +
 			  ns->eth.tx_multicast +
 			  ns->eth.tx_broadcast;
-	stats->ibytes   = ns->eth.rx_bytes;
+	stats->ibytes   = pf->main_vsi->eth_stats.rx_bytes;
 	stats->obytes   = ns->eth.tx_bytes;
 	stats->oerrors  = ns->eth.tx_errors +
 			  pf->main_vsi->eth_stats.tx_errors;
Signature · 1 line
2.34.1
#2 lore raw
Quoted 11 lines · Bruce Richardson
Quoted 8 lines · Jeff Shaw

This reverts commit af05f9e37153c53335938bcde2978a359c5f4efa.

A side effect of this patch is that it also counts frames which are dropped when the PF receives frames not destined for it when promiscuous mode is disabled.

---

Actually, patch has already been reverted, so dropping this in patchwork. [No wonder it seemed familiar to me! :-)]

https://github.com/DPDK/dpdk/commit/88132dfbe789a8705626efdb8f603206d716cf93