From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v5] mbuf: add a function to linearize a packet Date: Sun, 15 Jan 2017 19:32:01 +0100 Message-ID: <2976544.URLVtd8Z05@xps13> References: <1483634640-33892-1-git-send-email-tomaszx.kulasek@intel.com> <1484214044-9432-1-git-send-email-tomaszx.kulasek@intel.com> <20170113163234.1f38b9ee@platinum> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Olivier Matz , Pablo de Lara To: Tomasz Kulasek Return-path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 64EA9F94A for ; Sun, 15 Jan 2017 19:32:04 +0100 (CET) Received: by mail-wm0-f47.google.com with SMTP id c85so131520306wmi.1 for ; Sun, 15 Jan 2017 10:32:04 -0800 (PST) In-Reply-To: <20170113163234.1f38b9ee@platinum> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2017-01-13 16:32, Olivier Matz: > On Thu, 12 Jan 2017 10:40:44 +0100, Tomasz Kulasek > wrote: > > This patch adds function rte_pktmbuf_linearize to let crypto PMD > > coalesce chained mbuf before crypto operation and extend their > > capabilities to support segmented mbufs when device cannot handle > > them natively. > > > > Included unit tests for rte_pktmbuf_linearize functionality: > > > > 1) Creates banch of segmented mbufs with different size and number of > > segments. > > 2) Fills noncontigouos mbuf with sequential values. > > 3) Uses rte_pktmbuf_linearize to coalesce segmented buffer into one > > contiguous. > > 4) Verifies data in linearized buffer. > > > > Dependencies: > > > > This patch is rebased to the dpdk-next-crypto and should be applied > > before "Chained Mbufs support in SW PMDs" patchset. > > > > changes in v5: > > - name of patch changed, > > - improved coding style, > > > > changes in v4: > > - separated from "Chained Mbufs support in SW PMDs" patch set for > > better reviewing, > > - merged "rte_pktmbuf_linearize" implementation with unit tests, > > > > changes in v3: > > - rebased to dpdk-next-crypto > > > > changes in v2: > > - rte_pktmbuf_coalesce replaced with rte_pktmbuf_linearize > > > > Cc: Pablo de Lara > > Cc: Olivier Matz > > Signed-off-by: Tomasz Kulasek > > Acked-by: Olivier Matz Applied, thanks