From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by dpdk.org (Postfix) with ESMTP id C245E8AF4 for ; Sat, 11 Oct 2014 15:57:17 +0200 (CEST) Received: by mail-lb0-f181.google.com with SMTP id l4so4425591lbv.40 for ; Sat, 11 Oct 2014 07:04:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=gJA5DzHRXTZ0hJVMc/WCXdIPFDQfgvK1A8ggtps2Wbo=; b=H6HGHMjiLBuWqPgDyJHl5hEL8S1AQCQaxu89juiv42wz8CAgRRmxnSgm3ucmlA8/fP gk9qPn67H8HDCboJGnWWezNiKpwBMLUiab7hKYymVJgmBwzRDdc88LWlspgprwW2RVdy SUkpINGgBPRc4CN4j68amo3qIZPKTnreJ1xNt09P3j+c1Dl2w+2Vxp5CXwfYoWrPP5P0 gm4eiFXmO10takNq6nfA+kODHGPhcXZXCV/mXBu+GfbBZxu+w5rRjOHqvKHxoXGjZkcA EYIXBmO2g9jGVhoRC4mBQEGQjWqZTvWLErg86J6e3dDTAqJgNAKgtgwX5DE+nzLqI4qu YPPg== X-Gm-Message-State: ALoCoQlIG0hTbUa/7Fxbcr9p3zlsqgYOPzzNdJeMClrtZkAtd/HHA83M5sieZUfmDF6aZymvAEDk MIME-Version: 1.0 X-Received: by 10.112.149.105 with SMTP id tz9mr11651215lbb.5.1413036288432; Sat, 11 Oct 2014 07:04:48 -0700 (PDT) Received: by 10.25.215.141 with HTTP; Sat, 11 Oct 2014 07:04:48 -0700 (PDT) In-Reply-To: <2601191342CEEE43887BDE71AB97725821391286@IRSMSX105.ger.corp.intel.com> References: <2601191342CEEE43887BDE71AB97725821391089@IRSMSX105.ger.corp.intel.com> <2601191342CEEE43887BDE71AB9772582139126C@IRSMSX105.ger.corp.intel.com> <2601191342CEEE43887BDE71AB97725821391286@IRSMSX105.ger.corp.intel.com> Date: Sat, 11 Oct 2014 17:04:48 +0300 Message-ID: From: Alex Markuze To: "Ananyev, Konstantin" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Aligned RX data. 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: Sat, 11 Oct 2014 13:57:18 -0000 O.k, And how would I do that? I'm guessing there is something I can control in rte_pktmbuf_pool_init? I would appreciate If you could spare a word or two in the matter. On Tue, Oct 7, 2014 at 7:11 PM, Ananyev, Konstantin < konstantin.ananyev@intel.com> wrote: > > > > -----Original Message----- > > From: Ananyev, Konstantin > > Sent: Tuesday, October 07, 2014 5:03 PM > > To: Ananyev, Konstantin > > Subject: FW: [dpdk-dev] Aligned RX data. > > > > > > > > From: Alex Markuze [mailto:alex@weka.io] > > Sent: Tuesday, October 07, 2014 4:52 PM > > To: Ananyev, Konstantin > > Cc: dev@dpdk.org > > Subject: Re: [dpdk-dev] Aligned RX data. > > > > RTE_PKTMBUF_HEADROOM defines the headroom > > Yes. > > >this would be true only if the buff_start was aligned to 512 which is not. > > As I said: " Make sure that your all your mbufs are aligned by 512". > > Konstantin > > > > > On Tue, Oct 7, 2014 at 1:05 PM, Ananyev, Konstantin < > konstantin.ananyev@intel.com> wrote: > > > > > > > -----Original Message----- > > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Alex Markuze > > > Sent: Tuesday, October 07, 2014 10:40 AM > > > To: dev@dpdk.org > > > Subject: [dpdk-dev] Aligned RX data. > > > > > > Hi , I'm trying to receive aligned packets from the wire. > > > Meaning that for all received packets the pkt.data is always aligned to > > > (512 -H). > > > > > > Looking at the pmds of ixgbe/vmxnet I see that the pmds call > > > __rte_mbuf_raw_alloc and set the rx descriptor with a > > > RTE_MBUF_DATA_DMA_ADDR_DEFAULT > > > Instead of the more appropriate RTE_MBUF_DATA_DMA_ADDR. > > > > > > Do I need to modify each pmd I'm using to be able to receive aligned > data? > > Make sure that your all your mbufs are aligned by 512 and set in your > config RTE_PKTMBUF_HEADROOM=512-H? > > > > > > > Or have I missed something? > > > > > > Thanks > >