Author: np
Date: Fri Feb 16 18:23:27 2018
New Revision: 329391
URL: https://svnweb.freebsd.org/changeset/base/329391

Log:
  iw_cxgbe:  Follow-up fix to r329017, which updated the code associated
  with QP flush.
  
  This is a direct commit to stable/11.
  
  Sponsored by: Chelsio Communications

Modified:
  stable/11/sys/dev/cxgbe/iw_cxgbe/qp.c

Modified: stable/11/sys/dev/cxgbe/iw_cxgbe/qp.c
==============================================================================
--- stable/11/sys/dev/cxgbe/iw_cxgbe/qp.c       Fri Feb 16 18:07:04 2018        
(r329390)
+++ stable/11/sys/dev/cxgbe/iw_cxgbe/qp.c       Fri Feb 16 18:23:27 2018        
(r329391)
@@ -1036,7 +1036,8 @@ static void __flush_qp(struct c4iw_qp *qhp, struct c4i
        /* locking heirarchy: cq lock first, then qp lock. */
        spin_lock_irqsave(&schp->lock, flag);
        spin_lock(&qhp->lock);
-       c4iw_flush_hw_cq(schp);
+       if (schp != rchp)
+               c4iw_flush_hw_cq(schp);
        flushed = c4iw_flush_sq(qhp);
        spin_unlock(&qhp->lock);
        spin_unlock_irqrestore(&schp->lock, flag);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to