From owner-svn-src-projects@freebsd.org Fri Nov 13 00:34:59 2015 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4DC3BA2C470 for ; Fri, 13 Nov 2015 00:34:59 +0000 (UTC) (envelope-from np@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1130F1EAD; Fri, 13 Nov 2015 00:34:58 +0000 (UTC) (envelope-from np@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tAD0Yw8C045632; Fri, 13 Nov 2015 00:34:58 GMT (envelope-from np@FreeBSD.org) Received: (from np@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tAD0YwlF045631; Fri, 13 Nov 2015 00:34:58 GMT (envelope-from np@FreeBSD.org) Message-Id: <201511130034.tAD0YwlF045631@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: np set sender to np@FreeBSD.org using -f From: Navdeep Parhar Date: Fri, 13 Nov 2015 00:34:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r290732 - projects/cxl_iscsi/sys/dev/cxgbe/tom X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Nov 2015 00:34:59 -0000 Author: np Date: Fri Nov 13 00:34:57 2015 New Revision: 290732 URL: https://svnweb.freebsd.org/changeset/base/290732 Log: cxgbe/tom: consider all tx credits returned when the final CPL for a tid is received and purge ulp_pdu_reclaimq. Modified: projects/cxl_iscsi/sys/dev/cxgbe/tom/t4_tom.c Modified: projects/cxl_iscsi/sys/dev/cxgbe/tom/t4_tom.c ============================================================================== --- projects/cxl_iscsi/sys/dev/cxgbe/tom/t4_tom.c Thu Nov 12 23:49:47 2015 (r290731) +++ projects/cxl_iscsi/sys/dev/cxgbe/tom/t4_tom.c Fri Nov 13 00:34:57 2015 (r290732) @@ -390,6 +390,7 @@ final_cpl_received(struct toepcb *toep) toep->inp = NULL; toep->flags &= ~TPF_CPL_PENDING; + mbufq_drain(&toep->ulp_pdu_reclaimq); if (!(toep->flags & TPF_ATTACHED)) release_offload_resources(toep);