summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/dpa/dpaa_eth.h
diff options
context:
space:
mode:
authorBogdan Hamciuc <bogdan.hamciuc@freescale.com>2013-04-16 13:42:26 (GMT)
committerFleming Andrew-AFLEMING <AFLEMING@freescale.com>2013-04-16 23:09:36 (GMT)
commitb6fc0a45836a51823d028f6bbc790bd20ab5fa58 (patch)
tree7d07a7a91c2976e040e66e9ebeadeffd60ca5b83 /drivers/net/ethernet/freescale/dpa/dpaa_eth.h
parent692f5140114e04518000835a397327576230e176 (diff)
downloadlinux-fsl-qoriq-b6fc0a45836a51823d028f6bbc790bd20ab5fa58.tar.xz
dpaa_eth: 64 instead of 32 bit NIC counters
Change the data type of several fields used in network interface statistics. 'dpa_get_stats64' replaces 'dpa_get_stats' and 'u64' replaces 'u32'. Use a new function for calculating statistics. 'dpa_get_stats64' replaces 'dpa_get_stats'. Signed-off-by: Cristian Bercaru <cristian.bercaru@freescale.com> Change-Id: I580a531315067b73692ec2a21e0f78552c8da381 Reviewed-on: http://git.am.freescale.net:8181/1401 Reviewed-by: Radulescu Ruxandra Ioana-B05472 <ruxandra.radulescu@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpa/dpaa_eth.h')
-rw-r--r--drivers/net/ethernet/freescale/dpa/dpaa_eth.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth.h b/drivers/net/ethernet/freescale/dpa/dpaa_eth.h
index 5b7280b..d931274 100644
--- a/drivers/net/ethernet/freescale/dpa/dpaa_eth.h
+++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth.h
@@ -299,23 +299,23 @@ struct dpa_bp {
};
struct dpa_rx_errors {
- u32 dme; /* DMA Error */
- u32 fpe; /* Frame Physical Error */
- u32 fse; /* Frame Size Error */
- u32 phe; /* Header Error */
- u32 cse; /* Checksum Validation Error */
+ u64 dme; /* DMA Error */
+ u64 fpe; /* Frame Physical Error */
+ u64 fse; /* Frame Size Error */
+ u64 phe; /* Header Error */
+ u64 cse; /* Checksum Validation Error */
};
/* Counters for QMan ERN frames - one counter per rejection code */
struct dpa_ern_cnt {
- u32 cg_tdrop; /* Congestion group taildrop */
- u32 wred; /* WRED congestion */
- u32 err_cond; /* Error condition */
- u32 early_window; /* Order restoration, frame too early */
- u32 late_window; /* Order restoration, frame too late */
- u32 fq_tdrop; /* FQ taildrop */
- u32 fq_retired; /* FQ is retired */
- u32 orp_zero; /* ORP disabled */
+ u64 cg_tdrop; /* Congestion group taildrop */
+ u64 wred; /* WRED congestion */
+ u64 err_cond; /* Error condition */
+ u64 early_window; /* Order restoration, frame too early */
+ u64 late_window; /* Order restoration, frame too late */
+ u64 fq_tdrop; /* FQ taildrop */
+ u64 fq_retired; /* FQ is retired */
+ u64 orp_zero; /* ORP disabled */
};
struct dpa_percpu_priv_s {
@@ -334,12 +334,12 @@ struct dpa_percpu_priv_s {
/* current number of skbs in the CPU's list */
int skb_count;
#endif
- u32 in_interrupt;
- u32 tx_returned;
- u32 tx_confirm;
+ u64 in_interrupt;
+ u64 tx_returned;
+ u64 tx_confirm;
/* fragmented (non-linear) skbuffs received from the stack */
- u32 tx_frag_skbuffs;
- struct net_device_stats stats;
+ u64 tx_frag_skbuffs;
+ struct rtnl_link_stats64 stats;
struct dpa_rx_errors rx_errors;
struct dpa_ern_cnt ern_cnt;
};
@@ -493,7 +493,7 @@ static inline void clear_fd(struct qm_fd *fd)
}
static inline int __hot dpa_xmit(struct dpa_priv_s *priv,
- struct net_device_stats *percpu_stats, int queue,
+ struct rtnl_link_stats64 *percpu_stats, int queue,
struct qm_fd *fd)
{
int err, i;