From owner-svn-src-user@FreeBSD.ORG Sun Jun 7 23:46:29 2009 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5D821065672; Sun, 7 Jun 2009 23:46:29 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D48D58FC0A; Sun, 7 Jun 2009 23:46:29 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n57NkTkO009485; Sun, 7 Jun 2009 23:46:29 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n57NkTNF009483; Sun, 7 Jun 2009 23:46:29 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <200906072346.n57NkTNF009483@svn.freebsd.org> From: Kip Macy Date: Sun, 7 Jun 2009 23:46:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r193668 - user/kmacy/releng_7_2_fcs/sys/dev/cxgb X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jun 2009 23:46:30 -0000 Author: kmacy Date: Sun Jun 7 23:46:29 2009 New Revision: 193668 URL: http://svn.freebsd.org/changeset/base/193668 Log: track packets per-txq rather than globally Modified: user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_adapter.h user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_sge.c Modified: user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_adapter.h ============================================================================== --- user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_adapter.h Sun Jun 7 23:38:16 2009 (r193667) +++ user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_adapter.h Sun Jun 7 23:46:29 2009 (r193668) @@ -250,7 +250,9 @@ struct sge_txq { uint32_t txq_enqueued; uint32_t txq_dump_start; uint32_t txq_dump_count; - unsigned long txq_frees; + uint64_t txq_direct_packets; + uint64_t txq_direct_bytes; + uint64_t txq_frees; struct sg_ent txq_sgl[TX_MAX_SEGS / 2 + 1]; }; Modified: user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_sge.c ============================================================================== --- user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_sge.c Sun Jun 7 23:38:16 2009 (r193667) +++ user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_sge.c Sun Jun 7 23:46:29 2009 (r193668) @@ -1648,9 +1648,10 @@ cxgb_transmit_locked(struct ifnet *ifp, } else { /* * We've bypassed the buf ring so we need to update - * ifp directly + * the stats directly */ - drbr_stats_update(ifp, m->m_pkthdr.len, m->m_flags); + txq->txq_direct_packets++; + txq->txq_direct_bytes += m->m_pkthdr.len; /* ** Send a copy of the frame to the BPF ** listener and set the watchdog on.