diff options
author | davidcs <davidcs@FreeBSD.org> | 2013-06-10 17:12:22 +0000 |
---|---|---|
committer | davidcs <davidcs@FreeBSD.org> | 2013-06-10 17:12:22 +0000 |
commit | e05fb10b9cd0f9094907a33d7f075b75fab784b6 (patch) | |
tree | a6dc00d302ea8d2755963022ad89dff0e7259df9 /sys/dev | |
parent | ded5e8df052f0a617d2ef4294cd4c372b55801e7 (diff) | |
download | FreeBSD-src-e05fb10b9cd0f9094907a33d7f075b75fab784b6.zip FreeBSD-src-e05fb10b9cd0f9094907a33d7f075b75fab784b6.tar.gz |
There is a one-to-one correspondence between the MSI-X vector # and the Status Descriptor Ring Index. Hence there is no need to check the Interrupt Source Register.
Approved by: George Neville-Neil
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/qlxgbe/ql_isr.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/qlxgbe/ql_isr.c b/sys/dev/qlxgbe/ql_isr.c index 28ae30f..c11e986 100644 --- a/sys/dev/qlxgbe/ql_isr.c +++ b/sys/dev/qlxgbe/ql_isr.c @@ -858,7 +858,6 @@ ql_isr(void *arg) int idx; qla_hw_t *hw; struct ifnet *ifp; - uint32_t data = 0; uint32_t ret = 0; ha = ivec->ha; @@ -871,12 +870,7 @@ ql_isr(void *arg) if (idx == 0) taskqueue_enqueue(ha->tx_tq, &ha->tx_task); - - - data = READ_REG32(ha, ha->hw.intr_src[idx]); - - if (data & 0x1 ) - ret = qla_rcv_isr(ha, idx, -1); + ret = qla_rcv_isr(ha, idx, -1); if (idx == 0) taskqueue_enqueue(ha->tx_tq, &ha->tx_task); |