From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) by dpdk.org (Postfix) with ESMTP id 9F56B6A80 for ; Mon, 13 Oct 2014 10:39:45 +0200 (CEST) Received: by mail-la0-f41.google.com with SMTP id pn19so6310055lab.14 for ; Mon, 13 Oct 2014 01:47:24 -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=PdLVrFbWtuLu2QnBEm7J1KBFQvu74pqkQ+S+pGVTKoE=; b=dLZVEJvZmf2Zja7yWlgEb4flNvREQISbnFrXPaDq49rRPNSr7+6u3GLzZxQjMuBtax /p7jwkvX1inAkO/UP26jsNdv+kHjMs9o4ROPtgt0YGkCslJLz8W4WhPhNqlNtxBu9yCT 4/3GcgsLMeof/Z0AEj63RqknuKghXgkYvUgIgO7rqMIm2Z9R4Qskql5KWbkMQgJ6pZqE 0g0JCmSfX01UtMm9IGZf3z0AaiVOyBu9O4y7nWNQYsou4V6FSX2jWKbBTxH79s926p4U +5XdnXCICMVFIl2HU73CQRply//Kg1zuZ9SE6kPP1UpePz0Czm7+jzr2wWfL87yMmuPr aJHw== X-Gm-Message-State: ALoCoQltPTWZ3mlUsnQA7Fh3Vo/ulXDEVEWwhms0A+HgBK4Q1FQGsoF2ACR80u99fNy6ws0NO4Xa MIME-Version: 1.0 X-Received: by 10.112.171.229 with SMTP id ax5mr22495435lbc.25.1413190044577; Mon, 13 Oct 2014 01:47:24 -0700 (PDT) Received: by 10.25.215.141 with HTTP; Mon, 13 Oct 2014 01:47:24 -0700 (PDT) In-Reply-To: References: <2601191342CEEE43887BDE71AB97725821391089@IRSMSX105.ger.corp.intel.com> <2601191342CEEE43887BDE71AB9772582139126C@IRSMSX105.ger.corp.intel.com> <2601191342CEEE43887BDE71AB97725821391286@IRSMSX105.ger.corp.intel.com> Date: Mon, 13 Oct 2014 11:47:24 +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: Mon, 13 Oct 2014 08:39:45 -0000 Hi All, Is there a way to create a mempool such that all mbufs are aligned to X. lets say X is 512. Thanks. On Sat, Oct 11, 2014 at 5:04 PM, Alex Markuze wrote: > 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 >> >> >