From owner-p4-projects@FreeBSD.ORG Mon Sep 17 20:22:07 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id EEF8B16A468; Mon, 17 Sep 2007 20:22:06 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C53CC16A419 for ; Mon, 17 Sep 2007 20:22:06 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id CBECF13C45A for ; Mon, 17 Sep 2007 20:22:06 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l8HKM6Xa077719 for ; Mon, 17 Sep 2007 20:22:06 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l8HKM6Wi077716 for perforce@freebsd.org; Mon, 17 Sep 2007 20:22:06 GMT (envelope-from kmacy@freebsd.org) Date: Mon, 17 Sep 2007 20:22:06 GMT Message-Id: <200709172022.l8HKM6Wi077716@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to kmacy@freebsd.org using -f From: Kip Macy To: Perforce Change Reviews Cc: Subject: PERFORCE change 126529 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Sep 2007 20:22:07 -0000 http://perforce.freebsd.org/chv.cgi?CH=126529 Change 126529 by kmacy@kmacy_home:ethng on 2007/09/17 20:21:38 add cleanq for deferring frees until after the tx lock is dropped, makes tx performance more consistent but rate limits it somewhat in high pps contexts due to all buffer having the left the cache Affected files ... .. //depot/projects/ethng/src/sys/dev/cxgb/cxgb_adapter.h#17 edit Differences ... ==== //depot/projects/ethng/src/sys/dev/cxgb/cxgb_adapter.h#17 (text+ko) ==== @@ -275,6 +275,11 @@ bus_dmamap_t desc_map; bus_dma_tag_t entry_tag; struct mbuf_head sendq; + /* + * cleanq should really be an mbuf_ring to avoid extra + * mbuf touches + */ + struct mbuf_head cleanq; struct mbuf_ring txq_mr; uint32_t txq_drops; uint32_t txq_skipped;