From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCHv2] app/ and examples/ fix default mbuf size Date: Mon, 11 May 2015 17:03:15 +0200 Message-ID: <2490184.vOr9Egcnay@xps13> References: <1430350311-2368-1-git-send-email-konstantin.ananyev@intel.com> <5541F560.8010701@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Konstantin Ananyev Return-path: Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by dpdk.org (Postfix) with ESMTP id DEDD7C436 for ; Mon, 11 May 2015 17:03:57 +0200 (CEST) Received: by wief7 with SMTP id f7so88464951wie.0 for ; Mon, 11 May 2015 08:03:57 -0700 (PDT) In-Reply-To: <5541F560.8010701@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > 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 Applied, thanks