From owner-svn-src-all@freebsd.org Tue Jan 12 05:00:11 2016 Return-Path: Delivered-To: svn-src-all@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 A9649A6D701; Tue, 12 Jan 2016 05:00:11 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: from mail-io0-x22c.google.com (mail-io0-x22c.google.com [IPv6:2607:f8b0:4001:c06::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7C1811AD4; Tue, 12 Jan 2016 05:00:11 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: by mail-io0-x22c.google.com with SMTP id q21so372075363iod.0; Mon, 11 Jan 2016 21:00:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=QTCg/t4ZbHCw73nNeSVwft6ABkOWsWPuc/ICDR59TQg=; b=i7/xv9awQTzYPdsvNapAqE5ZEM94dBD5vT1HuPJiZyYp1XZ3jtfCZ+BHPW/lE0/mh/ pVq6La6T80niGymbY+bh0nVSdCBdobQ+tALQpf1+zjM1YR6+6a6TixssmyAPv/ExaAtw ITh2RemsjY4kNJ7ycs+YEf358KJRIapdTb0HdolKJKP+NmJ3iz9OzMyuTPHzdx0AT+cO VKiZewLfDXBTPnRr6ZjueB6KXk6eIRx3kzufwevfY98dSowio5AnwZainLtn/+T2cFCD T6x/VcaXQHvk/O2k6wX8g7b6TXqRPcgPtYZvSTyIjtcb6KbGcbRtHcWP6BZ4gCgPcFK9 yUHw== MIME-Version: 1.0 X-Received: by 10.107.7.22 with SMTP id 22mr64165090ioh.17.1452574810573; Mon, 11 Jan 2016 21:00:10 -0800 (PST) Sender: sepherosa@gmail.com Received: by 10.107.166.3 with HTTP; Mon, 11 Jan 2016 21:00:10 -0800 (PST) In-Reply-To: <20160112044208.GF1906@FreeBSD.org> References: <201601120150.u0C1ouKM081392@repo.freebsd.org> <20160112044208.GF1906@FreeBSD.org> Date: Tue, 12 Jan 2016 13:00:10 +0800 X-Google-Sender-Auth: L1snILaW5bFUKK0kQVNnR7pDTKY Message-ID: Subject: Re: svn commit: r293721 - head/sys/dev/hyperv/netvsc From: Sepherosa Ziehau To: Gleb Smirnoff Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jan 2016 05:00:11 -0000 On Tue, Jan 12, 2016 at 12:42 PM, Gleb Smirnoff wrote: > On Tue, Jan 12, 2016 at 01:50:56AM +0000, Sepherosa Ziehau wrote: > S> Author: sephe > S> Date: Tue Jan 12 01:50:56 2016 > S> New Revision: 293721 > S> URL: https://svnweb.freebsd.org/changeset/base/293721 > S> > S> Log: > S> hyperv/hn: Avoid mbuf cluster allocation, if the packet is small. > S> > S> This one mainly avoids mbuf cluster allocation for TCP ACKs during > S> TCP sending tests. And it gives me ~200Mbps improvement (4.7Gbps > S> -> 4.9Gbps), when running iperf3 TCP sending test w/ 16 connections. > S> > S> While I'm here, nuke the unnecessary zeroing out pkthdr.csum_flags. > S> > S> Reviewed by: adrain > S> Approved by: adrian (mentor) > S> Sponsored by: Microsoft OSTC > S> Differential Revision: https://reviews.freebsd.org/D4853 > > Consider using m_get2() instead of implementing it yourself :) Good suggestion, noted :) Thanks, sephe -- Tomorrow Will Never Die