Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2018 18:23:28 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r329391 - stable/11/sys/dev/cxgbe/iw_cxgbe
Message-ID:  <201802161823.w1GINSU2047775@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802161823.w1GINSU2047775>