diff options
author | Shahed Shaikh <shahed.shaikh@qlogic.com> | 2013-04-24 12:42:41 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-24 23:34:05 (GMT) |
commit | 522907403b202dea8528c308ffc21e79d0636ee6 (patch) | |
tree | be3351acf4612b292a10a16520a2fd0f5f1baf77 /drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c | |
parent | c0d79cd0684454a64af5926f38680d7124289c2a (diff) | |
download | linux-fsl-qoriq-522907403b202dea8528c308ffc21e79d0636ee6.tar.xz |
qlcnic: Add eSwitch statistics support
o Read eSwitch statistics from adapter and display them as part
of ethtool statistics.
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c index fd0829c..c40b077 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c @@ -2922,6 +2922,9 @@ static u64 *qlcnic_83xx_fill_stats(struct qlcnic_adapter *adapter, /* fill in MAC rx frame stats */ for (k += 6; k < 80; k += 2) data = qlcnic_83xx_copy_stats(cmd, data, k); + /* fill in eSwitch stats */ + for (; k < total_regs; k += 2) + data = qlcnic_83xx_copy_stats(cmd, data, k); break; case QLC_83XX_STAT_RX: for (k = 2; k < 8; k += 2) |