be2net: update some counters to display via ethtool
authorAjit Khaparde <ajit.khaparde@emulex.com>
Fri, 9 Dec 2011 13:53:09 +0000 (13:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Dec 2011 23:25:15 +0000 (18:25 -0500)
update pmem_fifo_overflow_drop, rx_priority_pause_frames counters.

Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c

index b8a526f9efc89a3f3588bcae8c23ef2289b4546a..73fe38928c2ba3e3c546c85503df582239cad87f 100644 (file)
@@ -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;