From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D675DA04E7; Mon, 2 Nov 2020 11:15:01 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 19024BE49; Mon, 2 Nov 2020 11:14:59 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 2F851BE48 for ; Mon, 2 Nov 2020 11:14:57 +0100 (CET) IronPort-SDR: dqc6DRkt/EXlAxewC4/YYu+it3YN/J/Tb7o4jdQF2meecj/yPSOLt4eEXrOUCR9IO4MmXSY38/ YO3jRdpFdK3w== X-IronPort-AV: E=McAfee;i="6000,8403,9792"; a="148717014" X-IronPort-AV: E=Sophos;i="5.77,444,1596524400"; d="scan'208";a="148717014" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2020 02:14:54 -0800 IronPort-SDR: 545EJSsJYN4NHJLVcrPa8vzirRZ1r1rKPW5K9svLUIEELckhM91hNIZWepKUrFcQuK/sB9cxIg nx4nyNEsCzgQ== X-IronPort-AV: E=Sophos;i="5.77,444,1596524400"; d="scan'208";a="537963212" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.219.143]) ([10.213.219.143]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2020 02:14:52 -0800 To: Long Li , Stephen Hemminger Cc: dev@dpdk.org, Stephen Hemminger , Long Li References: <1604103849-15879-1-git-send-email-longli@linuxonhyperv.com> From: Ferruh Yigit Message-ID: <0f93ad59-d432-338d-1aed-18b70b3f411c@intel.com> Date: Mon, 2 Nov 2020 10:14:48 +0000 MIME-Version: 1.0 In-Reply-To: <1604103849-15879-1-git-send-email-longli@linuxonhyperv.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH V3 1/2] net/netvsc: allow setting rx and tx copy break X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/31/2020 12:24 AM, Long Li wrote: > From: Stephen Hemminger > > The values for Rx and Tx copy break should be tunable rather > than hard coded constants. > > The rx_copybreak sets the threshold where the driver uses an > external mbuf to avoid having to copy data. Setting 0 for copybreak > will cause driver to always create an external mbuf. Setting > a value greater than the MTU would prevent it from ever making > an external mbuf and always copy. The default value is 256 (bytes). > > Likewise the tx_copybreak sets the threshold where the driver > aggregates multiple small packets into one request. If tx_copybreak > is 0 then each packet goes as a VMBus request (no copying). > If tx_copybreak is set larger than the MTU, then all packets smaller > than the chunk size of the VMBus send buffer will be copied; larger > packets always have to go as a single direct request. The default > value is 512 (bytes). > > Signed-off-by: Stephen Hemminger > Signed-off-by: Long Li Series applied to dpdk-next-net/main, thanks.