Patchwork [net-next,1/2] be2net: update some counters to display via ethtool

login
register
mail settings
Submitter Ajit Khaparde
Date Dec. 9, 2011, 11:53 p.m.
Message ID <20111209235309.GA21943@akhaparde-VBox>
Download mbox | patch
Permalink /patch/130496/
State Accepted
Delegated to: David Miller
Headers show

Comments

Ajit Khaparde - Dec. 9, 2011, 11:53 p.m.
update pmem_fifo_overflow_drop, rx_priority_pause_frames counters.

Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
---
 drivers/net/ethernet/emulex/benet/be_main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
David Miller - Dec. 11, 2011, 11:34 p.m.
From: Ajit Khaparde <ajit.khaparde@Emulex.Com>
Date: Fri, 9 Dec 2011 17:53:09 -0600

> update pmem_fifo_overflow_drop, rx_priority_pause_frames counters.
> 
> Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c
index b8a526f..73fe389 100644
--- a/drivers/net/ethernet/emulex/benet/be_main.c
+++ b/drivers/net/ethernet/emulex/benet/be_main.c
@@ -316,6 +316,8 @@  static void populate_be3_stats(struct be_adapter *adapter)
 	struct be_drv_stats *drvs = &adapter->drv_stats;
 
 	be_dws_le_to_cpu(hw_stats, sizeof(*hw_stats));
+	drvs->pmem_fifo_overflow_drop = port_stats->pmem_fifo_overflow_drop;
+	drvs->rx_priority_pause_frames = port_stats->rx_priority_pause_frames;
 	drvs->rx_pause_frames = port_stats->rx_pause_frames;
 	drvs->rx_crc_errors = port_stats->rx_crc_errors;
 	drvs->rx_control_frames = port_stats->rx_control_frames;