From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0F1AAA3168 for ; Thu, 17 Oct 2019 07:01:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 741C41E85F; Thu, 17 Oct 2019 07:01:37 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id C829C1E569 for ; Thu, 17 Oct 2019 07:01:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571288495; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1kzV1w+WpgaTDMLQLEnFCoevsNsd7gESNzXSbEHk8+I=; b=BLpginYo2KmIVOz6urxOJVETgo0O8pghTVl4A6y5EQ4eybYf2oN+FEQTlwkYLmOVB3thdj xRvqj6+MN9JVAmNV6NfCTQLrxiRSo/W/VVP6uAKQPIXV/XznwZan62LRR7wqkKGX8ZsECf gyl6W5LKyrMX04B5WGH1DGLeyM5NKVo= Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-280-i8Tn5nBQMKyCXYBUV-9VTw-1; Thu, 17 Oct 2019 01:01:34 -0400 Received: by mail-vk1-f198.google.com with SMTP id 63so470618vkr.23 for ; Wed, 16 Oct 2019 22:01:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vThj1i2RewBVk5ajmdTSr7BgQURG8FHXkYVxmcRI4s0=; b=C0MyfgQV+5AZm06tS5jty6nMrii1BM7l2/dkEYyIrXuCRCbGuIEgF80Klmbx1p7o1x PnrtUZzX9pOj4VbrsZMbvvXUtsEZ4HjZ/P7MMdZPJBOP/BpqwHFeFil/ZP+OSv8c3vZ/ IOYz0PdvxdfF379x+9c2y8I6uWQNq1oqgGWO9U/RYDD/n7qOWTccakMDU73G3+xR3aiP seCK4vow2LLteO4elP1WC8e19MuPYTQVMB4oG+yzJZKUXuMTJKAOOkUJnWtRCD/o0DeY s1kY+cPBbjuNKEZfaSwcpjya+zWW/v1qjyQ/4ImL/hBV7p4iLrG5RTEKj8z22KLC+9xr n77w== X-Gm-Message-State: APjAAAVMQSc99l1uApQnsANUlpSGeIc+NDJnaZjIpCAlgamDqGSE/o3V AczKEWQuZNtlyC+JdylWRCQxiL1MtYcSeAtzrKwLTUavutEdRsFaKYAC26WDTXV1tNZAyh8uyDd ngbQAxvlmzQTfVUvE4vA= X-Received: by 2002:a67:fa99:: with SMTP id f25mr824028vsq.141.1571288493620; Wed, 16 Oct 2019 22:01:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7F+ByCwB9POJciUpFgWF+DEDBHCTKDpey+kSEZHEwxuW8XQ0Eg8yKayMAM2bDE0Ywad1qI/PeSdjV+OvkSzo= X-Received: by 2002:a67:fa99:: with SMTP id f25mr824014vsq.141.1571288493390; Wed, 16 Oct 2019 22:01:33 -0700 (PDT) MIME-Version: 1.0 References: <20190928003758.18489-1-stephen@networkplumber.org> <20191008163350.20779-1-stephen@networkplumber.org> <20191008163350.20779-5-stephen@networkplumber.org> <20191016065811.d3oeuw5qgp6dpj6h@platinum> In-Reply-To: <20191016065811.d3oeuw5qgp6dpj6h@platinum> From: David Marchand Date: Thu, 17 Oct 2019 07:01:22 +0200 Message-ID: To: Stephen Hemminger Cc: dev , Olivier Matz X-MC-Unique: i8Tn5nBQMKyCXYBUV-9VTw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v6 4/5] mbuf: add a pktmbuf copy routine 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Oct 16, 2019 at 8:58 AM Olivier Matz wrote= : > > On Tue, Oct 08, 2019 at 09:33:49AM -0700, Stephen Hemminger wrote: > > This is a commonly used operation that surprisingly the > > DPDK has not supported. The new rte_pktmbuf_copy does a > > deep copy of packet. This is a complete copy including > > meta-data. > > > > It handles the case where the source mbuf comes from a pool > > with larger data area than the destination pool. The routine > > also has options for skipping data, or truncating at a fixed > > length. > > > > This patch also introduces internal inline to copy the > > metadata fields of mbuf. > > > > Signed-off-by: Stephen Hemminger > > Acked-by: Olivier Matz Squashed with next patch, since a separate patch for the test added not muc= h. Applied, thanks. -- David Marchand