diff options
author | Govindarajulu Varadarajan <_govind@gmx.com> | 2014-12-24 13:29:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-31 21:08:45 +0300 |
commit | 58feff07e9c964a88f82d13d272d384bd4274a33 (patch) | |
tree | 5ad7ef704398f5dd859fac7a14831bdcc8389a8d /drivers/net/ethernet/cisco/enic/vnic_stats.h | |
parent | 065df159ec588630a360a689e4e3043c6622a6e9 (diff) | |
download | linux-58feff07e9c964a88f82d13d272d384bd4274a33.tar.xz |
enic: add stats for dma mapping error
This patch adds generic statistics for enic. As of now dma_map_error is the only
member. dma_map_erro is incremented every time dma maping error happens.
Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cisco/enic/vnic_stats.h')
-rw-r--r-- | drivers/net/ethernet/cisco/enic/vnic_stats.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cisco/enic/vnic_stats.h b/drivers/net/ethernet/cisco/enic/vnic_stats.h index 77750ec93954..74c81ed6fdab 100644 --- a/drivers/net/ethernet/cisco/enic/vnic_stats.h +++ b/drivers/net/ethernet/cisco/enic/vnic_stats.h @@ -62,6 +62,11 @@ struct vnic_rx_stats { u64 rsvd[16]; }; +/* Generic statistics */ +struct vnic_gen_stats { + u64 dma_map_error; +}; + struct vnic_stats { struct vnic_tx_stats tx; struct vnic_rx_stats rx; |