be2net: Fix to show tx priority pause counter in ethtool -S
authorAjit Khaparde <ajit.khaparde@emulex.com>
Wed, 1 May 2013 09:38:00 +0000 (09:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 May 2013 20:43:13 +0000 (16:43 -0400)
The tx priority pause count is available with the driver.
But we were not showing it.
This change should fix it and display it in ethtool stats.

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

index 5733cde88e2cccea3ea26fcf1a1a76ade95322ec..3d4461adb3b4194eef3fe2dca339650665dac97b 100644 (file)
@@ -85,6 +85,7 @@ static const struct be_ethtool_stat et_stats[] = {
        {DRVSTAT_INFO(tx_pauseframes)},
        {DRVSTAT_INFO(tx_controlframes)},
        {DRVSTAT_INFO(rx_priority_pause_frames)},
+       {DRVSTAT_INFO(tx_priority_pauseframes)},
        /* Received packets dropped when an internal fifo going into
         * main packet buffer tank (PMEM) overflows.
         */
index e60e7f724144f6eaf8b097ac3424454b63be5077..591a8675a13dc201a1cb3a86585bdf1855ff4fce 100644 (file)
@@ -410,6 +410,7 @@ static void populate_be_v1_stats(struct be_adapter *adapter)
        drvs->rxpp_fifo_overflow_drop = port_stats->rxpp_fifo_overflow_drop;
        drvs->tx_pauseframes = port_stats->tx_pauseframes;
        drvs->tx_controlframes = port_stats->tx_controlframes;
+       drvs->tx_priority_pauseframes = port_stats->tx_priority_pauseframes;
        drvs->jabber_events = port_stats->jabber_events;
        drvs->rx_drops_no_pbuf = rxf_stats->rx_drops_no_pbuf;
        drvs->rx_drops_no_erx_descr = rxf_stats->rx_drops_no_erx_descr;