From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=fQGvcseRJ6ti0PqsyFA22iG6Tl8/SYfVwQZSwXN7xng=; b=DMjYyw4zATFQp4vinJ5u3mtMbE1Zx0ULm3Bpztg2+yN2jweAuCzfYlBBjI8+3gYlQl tmxw57TphFtBfm2yUBLNdghqz0VSLmPXmkE2kN39kEFB9+yvSsOt8Sj0O0BeghBkKZcy vPn4y909EdPovVP9OX3Bg9yRqEEQbMRlvL2Tf0GPTnM8Jyqc/AAdQq+OnO1UGh45tkhM Q4yUZrQdSzcS+eksGS+PFPv9T1aA09VJPJsinYlVbUR/kDJ4jGDeQdrJk7O2HoGrvY8v D/5fMqr0gaABkcCY0txTlAwX1ZeBsdYQmyR5ppBx9eJY2f+668uyzUZG+poeMSp8tHeu ddQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=fQGvcseRJ6ti0PqsyFA22iG6Tl8/SYfVwQZSwXN7xng=; b=V4L8VBzfNnwMHZvqcFXjgAghg1wgkDffIrw7ztVPRfVHRHgB8tb/SpkxzJoq8LaXor 6ntnDJGq9EwZV/6pqfLAEgC+tuhrstj0RhRCAzX4UneYPAGKOKw4ihZuSJsQPjmoslUr RH/tGcDGo48Y1ifvtjXsWZQhWtJ8VJvFffrh9ApVqCQ1XnRh2269cZhu5W3ZXTq62emA 2VqsLopMc829YAjwJdGRmxD44pI/H8Qtdthf/CcqaeylYG9c8WZ1TxRaGkFiEQtnechm qfmMD7TWZUlzwKEMxMxXKAMonK1JPtL+9trG24Bjn23izUvYeUvweguYdY8DNNw9Kiys GCww== X-Gm-Message-State: AIkVDXLfkM4RuToROxxO+qXdMRB4BwdouXxs2H35P8baWebTT6G8JUwaXTt6kIVtKr+g26od X-Received: by 10.223.142.208 with SMTP id q74mr15530979wrb.101.1484505124093; Sun, 15 Jan 2017 10:32:04 -0800 (PST) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id 197sm22785744wmy.16.2017.01.15.10.32.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Jan 2017 10:32:03 -0800 (PST) From: Thomas Monjalon To: Tomasz Kulasek Cc: dev@dpdk.org, Olivier Matz , Pablo de Lara Date: Sun, 15 Jan 2017 19:32:01 +0100 Message-ID: <2976544.URLVtd8Z05@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <20170113163234.1f38b9ee@platinum> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v5] mbuf: add a function to linearize a packet X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jan 2017 18:32:04 -0000 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