summaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb4vf/sge.c
diff options
context:
space:
mode:
authorCasey Leedom <leedom@chelsio.com>2010-07-08 10:05:48 -0700
committerDavid S. Miller <davem@davemloft.net>2010-07-08 23:48:35 -0700
commit68dc9d36c19aa1fd1633427b419d5e1f44753e8a (patch)
tree4773c01ce4f53445e961ce1256d9c59fccfeb9a2 /drivers/net/cxgb4vf/sge.c
parentfabc51a640b35a771b6c75d2186193fdaf25cf56 (diff)
downloadblackbird-op-linux-68dc9d36c19aa1fd1633427b419d5e1f44753e8a.tar.gz
blackbird-op-linux-68dc9d36c19aa1fd1633427b419d5e1f44753e8a.zip
cxgb4vf: Implement "Unhandled Interrupts" statistic
Implement "Unhandled Interrupts" statistic so we can detect when the hardware tells us that it things we have work to do but we don't find anything ... Signed-off-by: Casey Leedom <leedom@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb4vf/sge.c')
-rw-r--r--drivers/net/cxgb4vf/sge.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/cxgb4vf/sge.c b/drivers/net/cxgb4vf/sge.c
index 4bc1858dc303..37c6354547c7 100644
--- a/drivers/net/cxgb4vf/sge.c
+++ b/drivers/net/cxgb4vf/sge.c
@@ -1772,6 +1772,9 @@ static int napi_rx_handler(struct napi_struct *napi, int budget)
} else
intr_params = QINTR_TIMER_IDX(SGE_TIMER_UPD_CIDX);
+ if (unlikely(work_done == 0))
+ rspq->unhandled_irqs++;
+
t4_write_reg(rspq->adapter,
T4VF_SGE_BASE_ADDR + SGE_VF_GTS,
CIDXINC(work_done) |
OpenPOWER on IntegriCloud