From owner-svn-src-head@freebsd.org Mon Sep 14 09:17:20 2015 Return-Path: Delivered-To: svn-src-head@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 84C45A034D1; Mon, 14 Sep 2015 09:17:20 +0000 (UTC) (envelope-from royger@gmail.com) Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) (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 2261B120E; Mon, 14 Sep 2015 09:17:20 +0000 (UTC) (envelope-from royger@gmail.com) Received: by wicge5 with SMTP id ge5so133381920wic.0; Mon, 14 Sep 2015 02:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=QbPRdPvzkpcHjz0gRdDGE6q7k9tqZ2ItAfW275Mm8ho=; b=sw3A3OPERgVfwprl639xaMpbMzjUIVNjKQcoX9kopsgKFKrpCzF70b5bds0zSBh/2+ pRjXMHLQbcCX9DPl8ygMyW+ZiTS4pPI5l8d2xsXrY33tChbGpEQ50l3xpOouMeSOLcb/ blpAZNV+i5ED+wsoPtSkMK1Dqq09CgxRcD1rPTGnTnm3SSxYIsLTa+7m9K/6w6rg7pVy oW4ZC4ChZplj9PoW39Wa7FziD+EsdXJkARw2OdXlcwHF7OpdtHOC56zjkrPYQCtDiWSx 7wCcUupVTRAB1KuEva9MGyxr/OGZ7Ul4tigGCJHNKilu6jVgZKD3/0HcIT6KyhZHx7aE IY3A== X-Received: by 10.194.108.4 with SMTP id hg4mr27079708wjb.45.1442222238651; Mon, 14 Sep 2015 02:17:18 -0700 (PDT) Received: from [172.16.1.30] (195.Red-83-39-7.dynamicIP.rima-tde.net. [83.39.7.195]) by smtp.gmail.com with ESMTPSA id d8sm18064538wiy.1.2015.09.14.02.17.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Sep 2015 02:17:17 -0700 (PDT) Sender: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Subject: Re: svn commit: r271946 - in head/sys: dev/oce dev/vmware/vmxnet3 dev/xen/netfront kern net netinet ofed/drivers/net/mlx4 sys To: Hans Petter Selasky , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201409220827.s8M8RRHB031526@svn.freebsd.org> From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Message-ID: <55F69093.5050807@FreeBSD.org> Date: Mon, 14 Sep 2015 11:17:07 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <201409220827.s8M8RRHB031526@svn.freebsd.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Sep 2015 09:17:20 -0000 El 22/09/14 a les 10.27, Hans Petter Selasky ha escrit: > Author: hselasky > Date: Mon Sep 22 08:27:27 2014 > New Revision: 271946 > URL: http://svnweb.freebsd.org/changeset/base/271946 > > Log: > Improve transmit sending offload, TSO, algorithm in general. > > The current TSO limitation feature only takes the total number of > bytes in an mbuf chain into account and does not limit by the number > of mbufs in a chain. Some kinds of hardware is limited by two > factors. One is the fragment length and the second is the fragment > count. Both of these limits need to be taken into account when doing > TSO. Else some kinds of hardware might have to drop completely valid > mbuf chains because they cannot loaded into the given hardware's DMA > engine. The new way of doing TSO limitation has been made backwards > compatible as input from other FreeBSD developers and will use > defaults for values not set. > > Reviewed by: adrian, rmacklem > Sponsored by: Mellanox Technologies This commit makes xen-netfront tx performance drop from ~5Gbits/sec (with debug options enabled) to 446 Mbits/sec. I'm currently looking, but if anyone has ideas they are welcome. Roger.