Author: np
Date: Fri May 13 21:25:14 2011
New Revision: 221859
URL: http://svn.freebsd.org/changeset/base/221859

Log:
  MFC r221464:
  Always re-arm an iq's interrupt before leaving the handler.

Modified:
  stable/8/sys/dev/cxgbe/t4_sge.c

Modified: stable/8/sys/dev/cxgbe/t4_sge.c
==============================================================================
--- stable/8/sys/dev/cxgbe/t4_sge.c     Fri May 13 20:58:48 2011        
(r221858)
+++ stable/8/sys/dev/cxgbe/t4_sge.c     Fri May 13 21:25:14 2011        
(r221859)
@@ -499,11 +499,8 @@ t4_intr_fwd(void *arg)
                iq_next(iq);
        }
 
-       if (ndesc_total > 0) {
-               t4_write_reg(sc, MYPF_REG(A_SGE_PF_GTS),
-                   V_CIDXINC(ndesc_pending) | V_INGRESSQID((u32)iq->cntxt_id) |
-                   V_SEINTARM(iq->intr_params));
-       }
+       t4_write_reg(sc, MYPF_REG(A_SGE_PF_GTS), V_CIDXINC(ndesc_pending) |
+           V_INGRESSQID((u32)iq->cntxt_id) | V_SEINTARM(iq->intr_params));
 
        atomic_cmpset_32(&iq->state, IQS_BUSY, IQS_IDLE);
 }
@@ -601,11 +598,8 @@ t4_evt_rx(void *arg)
                iq_next(iq);
        }
 
-       if (ndesc_total > 0) {
-               t4_write_reg(sc, MYPF_REG(A_SGE_PF_GTS),
-                   V_CIDXINC(ndesc_pending) | V_INGRESSQID(iq->cntxt_id) |
-                   V_SEINTARM(iq->intr_params));
-       }
+       t4_write_reg(sc, MYPF_REG(A_SGE_PF_GTS), V_CIDXINC(ndesc_pending) |
+           V_INGRESSQID(iq->cntxt_id) | V_SEINTARM(iq->intr_params));
 }
 
 void
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to