Skip to contentSkip to conversation

be2net: stats for packets received due to internal switching in ASIC.

PATCH In review Ajit Khaparde 1 participant 1 message Aug 22, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/6 be2net: stats for packets received due to internal switching in ASIC.

Counters for packets received due to internal switching are already available. This change will start displaying them in ethtool -S

---
 drivers/net/benet/be_ethtool.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/net/benet/be_ethtool.c +3 -0
index 13f0abb..d920634 100644
@@ -91,6 +91,9 @@ static const struct be_ethtool_stat et_stats[] = {
 	{PORTSTAT_INFO(rx_non_rss_packets)},
 	{PORTSTAT_INFO(rx_ipv4_packets)},
 	{PORTSTAT_INFO(rx_ipv6_packets)},
+	{PORTSTAT_INFO(rx_switched_unicast_packets)},
+	{PORTSTAT_INFO(rx_switched_multicast_packets)},
+	{PORTSTAT_INFO(rx_switched_broadcast_packets)},
 	{PORTSTAT_INFO(tx_unicastframes)},
 	{PORTSTAT_INFO(tx_multicastframes)},
 	{PORTSTAT_INFO(tx_broadcastframes)},
Signature · 1 line
1.7.0.4