From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by dpdk.org (Postfix) with ESMTP id 4AE30C9FA for ; Thu, 30 Apr 2015 11:26:58 +0200 (CEST) Received: by wiun10 with SMTP id n10so10561345wiu.1 for ; Thu, 30 Apr 2015 02:26:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=5UqglroMHufqCjsphWbWKpnomXoC91NKgZdWM930iQ0=; b=NrSZd5tR8LxjxmLSZXabg86xcFdQKNT42kXde0xyj79NawEEHX27WiHBqNcacbk/+P AHIV+liXWJBdUbogIE30p85xOis2kojQpJ2Q+PpzB6XLzwKh/w6yPIZlBLCaqQETA0KA JcYJZowWUy6jWbyRvy59HG2g/4p8yaIMdn75E8q+5OQs+1xzBrkierA1AG4AcXDrL8uL HuEqaC4ubZAyE553DD3H9Fjt1l0Ee5f4+qssbdzG87d8EHOqCx7Qv7uux5kzwwxcC0CI 6zMutXe77tNrzjsQq4nEVFoGqGBEzuTPjBShHxSZtJYsNBeeBQbABJwSNo0i8dxB7fFi EPwg== X-Gm-Message-State: ALoCoQlHWuptoQLd0CdNJnT+32Ul5WnyZy8F+xrP7U89c9+zX/Ra9CyPmgQ7CjTDdV9VjOZ2yrGq X-Received: by 10.194.133.229 with SMTP id pf5mr6357162wjb.49.1430386018172; Thu, 30 Apr 2015 02:26:58 -0700 (PDT) Received: from [10.16.0.195] (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id fu2sm1538204wic.20.2015.04.30.02.26.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Apr 2015 02:26:57 -0700 (PDT) Message-ID: <5541F560.8010701@6wind.com> Date: Thu, 30 Apr 2015 11:26:56 +0200 From: Olivier MATZ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0 MIME-Version: 1.0 To: Konstantin Ananyev , dev@dpdk.org References: <1430350311-2368-1-git-send-email-konstantin.ananyev@intel.com> In-Reply-To: <1430350311-2368-1-git-send-email-konstantin.ananyev@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCHv2] app/ and examples/ fix default mbuf size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 09:26:58 -0000 Hi Konstantin, On 04/30/2015 01:31 AM, Konstantin Ananyev wrote: > v2 changes: > - add a new macro into rte_mbuf.h > - make samples to use that new macro > > > Fixes: dfb03bbe2b ("app/testpmd: use standard functions to initialize > mbufs and mbuf pool"). > Latest mbuf changes (priv_size addition and related fixes) > exposed small problem with testpmd and few other sample apps: > when mbuf size is exaclty 2KB or less, that causes > ixgbe PMD to select scattered RX even for configs with 'normal' > max packet length (max_rx_pkt_len == ETHER_MAX_LEN). > To overcome that problem and unify the code, new macro was created > to represent recommended minimal buffer length for mbuf. > When appropriate, samples are updated to use that macro. > > Signed-off-by: Konstantin Ananyev Acked-by: Olivier Matz Thanks