diff options
author | Ajit Khaparde <ajit.khaparde@emulex.com> | 2013-05-01 05:38:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-02 16:43:13 -0400 |
commit | b5adffc472243f6ce5adbeb946bd271c16b6ce2f (patch) | |
tree | f71f200e6b77a79f45e2ec641b276832798dd617 /drivers/net/ethernet/emulex | |
parent | a6c578ef9b6dc39efd8cd6e68295f63486d20c75 (diff) |
be2net: Fix to show tx priority pause counter in ethtool -S
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>
Diffstat (limited to 'drivers/net/ethernet/emulex')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_ethtool.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_main.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_ethtool.c b/drivers/net/ethernet/emulex/benet/be_ethtool.c index 5733cde88e2c..3d4461adb3b4 100644 --- a/drivers/net/ethernet/emulex/benet/be_ethtool.c +++ b/drivers/net/ethernet/emulex/benet/be_ethtool.c | |||
@@ -85,6 +85,7 @@ static const struct be_ethtool_stat et_stats[] = { | |||
85 | {DRVSTAT_INFO(tx_pauseframes)}, | 85 | {DRVSTAT_INFO(tx_pauseframes)}, |
86 | {DRVSTAT_INFO(tx_controlframes)}, | 86 | {DRVSTAT_INFO(tx_controlframes)}, |
87 | {DRVSTAT_INFO(rx_priority_pause_frames)}, | 87 | {DRVSTAT_INFO(rx_priority_pause_frames)}, |
88 | {DRVSTAT_INFO(tx_priority_pauseframes)}, | ||
88 | /* Received packets dropped when an internal fifo going into | 89 | /* Received packets dropped when an internal fifo going into |
89 | * main packet buffer tank (PMEM) overflows. | 90 | * main packet buffer tank (PMEM) overflows. |
90 | */ | 91 | */ |
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index e60e7f724144..591a8675a13d 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c | |||
@@ -410,6 +410,7 @@ static void populate_be_v1_stats(struct be_adapter *adapter) | |||
410 | drvs->rxpp_fifo_overflow_drop = port_stats->rxpp_fifo_overflow_drop; | 410 | drvs->rxpp_fifo_overflow_drop = port_stats->rxpp_fifo_overflow_drop; |
411 | drvs->tx_pauseframes = port_stats->tx_pauseframes; | 411 | drvs->tx_pauseframes = port_stats->tx_pauseframes; |
412 | drvs->tx_controlframes = port_stats->tx_controlframes; | 412 | drvs->tx_controlframes = port_stats->tx_controlframes; |
413 | drvs->tx_priority_pauseframes = port_stats->tx_priority_pauseframes; | ||
413 | drvs->jabber_events = port_stats->jabber_events; | 414 | drvs->jabber_events = port_stats->jabber_events; |
414 | drvs->rx_drops_no_pbuf = rxf_stats->rx_drops_no_pbuf; | 415 | drvs->rx_drops_no_pbuf = rxf_stats->rx_drops_no_pbuf; |
415 | drvs->rx_drops_no_erx_descr = rxf_stats->rx_drops_no_erx_descr; | 416 | drvs->rx_drops_no_erx_descr = rxf_stats->rx_drops_no_erx_descr; |