diff options
author | Kalesh AP <kalesh.purayil@emulex.com> | 2014-09-02 08:26:49 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-02 23:45:59 +0400 |
commit | 512bb8a244d2854953c65c0b36b0d0812fced7d5 (patch) | |
tree | d70abf9e64dda09dc13dd2be73cea6c45e7fcb1a /drivers/net/ethernet/emulex/benet/be.h | |
parent | acbd6ff833da9d84e6596bfc94c5605a9c5b66da (diff) | |
download | linux-512bb8a244d2854953c65c0b36b0d0812fced7d5.tar.xz |
be2net: Add TX completion error statistics in ethtool
HW reports TX completion errors in TX completion. This patch adds these
counters to ethtool statistics.
Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h index d9cd88576ffa..d491ac614dcf 100644 --- a/drivers/net/ethernet/emulex/benet/be.h +++ b/drivers/net/ethernet/emulex/benet/be.h @@ -248,6 +248,13 @@ struct be_tx_stats { ulong tx_jiffies; u32 tx_stops; u32 tx_drv_drops; /* pkts dropped by driver */ + /* the error counters are described in be_ethtool.c */ + u32 tx_hdr_parse_err; + u32 tx_dma_err; + u32 tx_tso_err; + u32 tx_spoof_check_err; + u32 tx_qinq_err; + u32 tx_internal_parity_err; struct u64_stats_sync sync; struct u64_stats_sync sync_compl; }; |