summaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2006-06-12 22:16:13 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-06-17 21:30:40 -0700
commitcea94db9b496d7fe25bbd3ebd0f24afaac2069d5 (patch)
treee425453a1f5fcc28c4db9c750f825161a58d03ac /drivers/net/bnx2.h
parentbc726a71d2799f0f8b68a17f49d86aa030f64abc (diff)
downloadlinux-cea94db9b496d7fe25bbd3ebd0f24afaac2069d5.tar.bz2
[BNX2]: Add an rx drop counter
Add a counter for packets dropped by firmware. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r--drivers/net/bnx2.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index b87925f6a228..ea1ab06046d7 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -231,6 +231,7 @@ struct statistics_block {
u32 stat_GenStat13;
u32 stat_GenStat14;
u32 stat_GenStat15;
+ u32 stat_FwRxDrop;
};
@@ -3481,6 +3482,8 @@ struct l2_fhdr {
#define BNX2_COM_SCRATCH 0x00120000
+#define BNX2_FW_RX_DROP_COUNT 0x00120084
+
/*
* cp_reg definition