aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/atheros
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2014-01-09 04:09:27 -0500
committerDavid S. Miller <davem@davemloft.net>2014-01-11 23:52:58 -0500
commit19f6626469282e8a2fa0ff924cd79e6bb65d10a6 (patch)
tree340ea2ce27cac0a8a3b83c9bfcbd82fa5c5269bd /drivers/net/ethernet/atheros
parent6d71f1644fd629157ba078bfaba11b0fe5a650d5 (diff)
alx: add a hardware stats structure
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/atheros')
-rw-r--r--drivers/net/ethernet/atheros/alx/hw.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/drivers/net/ethernet/atheros/alx/hw.h b/drivers/net/ethernet/atheros/alx/hw.h
index 96f3b4381e17..872b3628a678 100644
--- a/drivers/net/ethernet/atheros/alx/hw.h
+++ b/drivers/net/ethernet/atheros/alx/hw.h
@@ -381,6 +381,68 @@ struct alx_rrd {
381 ALX_ISR_RX_Q6 | \ 381 ALX_ISR_RX_Q6 | \
382 ALX_ISR_RX_Q7) 382 ALX_ISR_RX_Q7)
383 383
384/* Statistics counters collected by the MAC */
385struct alx_hw_stats {
386 /* rx */
387 u64 rx_ok; /* good RX packets */
388 u64 rx_bcast; /* good RX broadcast packets */
389 u64 rx_mcast; /* good RX multicast packets */
390 u64 rx_pause; /* RX pause frames */
391 u64 rx_ctrl; /* RX control packets other than pause frames */
392 u64 rx_fcs_err; /* RX packets with bad FCS */
393 u64 rx_len_err; /* RX packets with length != actual size */
394 u64 rx_byte_cnt; /* good bytes received. FCS is NOT included */
395 u64 rx_runt; /* RX packets < 64 bytes with good FCS */
396 u64 rx_frag; /* RX packets < 64 bytes with bad FCS */
397 u64 rx_sz_64B; /* 64 byte RX packets */
398 u64 rx_sz_127B; /* 65-127 byte RX packets */
399 u64 rx_sz_255B; /* 128-255 byte RX packets */
400 u64 rx_sz_511B; /* 256-511 byte RX packets */
401 u64 rx_sz_1023B; /* 512-1023 byte RX packets */
402 u64 rx_sz_1518B; /* 1024-1518 byte RX packets */
403 u64 rx_sz_max; /* 1519 byte to MTU RX packets */
404 u64 rx_ov_sz; /* truncated RX packets, size > MTU */
405 u64 rx_ov_rxf; /* frames dropped due to RX FIFO overflow */
406 u64 rx_ov_rrd; /* frames dropped due to RRD overflow */
407 u64 rx_align_err; /* alignment errors */
408 u64 rx_bc_byte_cnt; /* RX broadcast bytes, excluding FCS */
409 u64 rx_mc_byte_cnt; /* RX multicast bytes, excluding FCS */
410 u64 rx_err_addr; /* packets dropped due to address filtering */
411
412 /* tx */
413 u64 tx_ok; /* good TX packets */
414 u64 tx_bcast; /* good TX broadcast packets */
415 u64 tx_mcast; /* good TX multicast packets */
416 u64 tx_pause; /* TX pause frames */
417 u64 tx_exc_defer; /* TX packets deferred excessively */
418 u64 tx_ctrl; /* TX control frames, excluding pause frames */
419 u64 tx_defer; /* TX packets deferred */
420 u64 tx_byte_cnt; /* bytes transmitted, FCS is NOT included */
421 u64 tx_sz_64B; /* 64 byte TX packets */
422 u64 tx_sz_127B; /* 65-127 byte TX packets */
423 u64 tx_sz_255B; /* 128-255 byte TX packets */
424 u64 tx_sz_511B; /* 256-511 byte TX packets */
425 u64 tx_sz_1023B; /* 512-1023 byte TX packets */
426 u64 tx_sz_1518B; /* 1024-1518 byte TX packets */
427 u64 tx_sz_max; /* 1519 byte to MTU TX packets */
428 u64 tx_single_col; /* packets TX after a single collision */
429 u64 tx_multi_col; /* packets TX after multiple collisions */
430 u64 tx_late_col; /* TX packets with late collisions */
431 u64 tx_abort_col; /* TX packets aborted w/excessive collisions */
432 u64 tx_underrun; /* TX packets aborted due to TX FIFO underrun
433 * or TRD FIFO underrun
434 */
435 u64 tx_trd_eop; /* reads beyond the EOP into the next frame
436 * when TRD was not written timely
437 */
438 u64 tx_len_err; /* TX packets where length != actual size */
439 u64 tx_trunc; /* TX packets truncated due to size > MTU */
440 u64 tx_bc_byte_cnt; /* broadcast bytes transmitted, excluding FCS */
441 u64 tx_mc_byte_cnt; /* multicast bytes transmitted, excluding FCS */
442 u64 update;
443};
444
445
384/* maximum interrupt vectors for msix */ 446/* maximum interrupt vectors for msix */
385#define ALX_MAX_MSIX_INTRS 16 447#define ALX_MAX_MSIX_INTRS 16
386 448