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 796B5A3168 for ; Wed, 16 Oct 2019 08:58:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5A9301E8C3; Wed, 16 Oct 2019 08:58:14 +0200 (CEST) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by dpdk.org (Postfix) with ESMTP id 9206F1D445 for ; Wed, 16 Oct 2019 08:58:13 +0200 (CEST) Received: by mail-wm1-f68.google.com with SMTP id a6so1526637wma.5 for ; Tue, 15 Oct 2019 23:58:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=pAZVkzf4HOKoPhCRel7Fm097vS27rtilsvgi+at2+HI=; b=i9bp7H1F+y+6GNpqg6CjUQz9lypkQRyAbq0cCwGg3to8Tj9bw4KDgaEWJ0fJrlAhBv hlPr7jKYMG0SOhX42d99RJn840GO/NfyVPZvy5EuNXvsmmV1nX8BhWznxYUSqZp7gtCc 0g/eV6zMksa5yFcFlDCbojDQiafly15r50TmyBbuc0JxoyJTSzegw4lHfhOm4zReAPmY EEQOH73XP9xBHOmj9tQ36Qp9VW3xxOwu4+mj9kF9WC65rB1EZJu/aKndp25uOpfUB8eN 9g8gsJWwQQQYB5Mp79DMMCHw1QwoZ5T8LoqPIJKYEE/F8o8qor0oPeGbx50yyA/bs9L1 UXmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=pAZVkzf4HOKoPhCRel7Fm097vS27rtilsvgi+at2+HI=; b=K87v4ONvza3ZXTh1K3+UlmA47VottYi45qwhE6uvz63kcQsBlPPkNfm+RrcNkIgtmB h4TB4PuKIBc8ck3TRfNp0sgiQJ/xr4LPMa+jF4MnaDZOCesYW/T52wwKoR77DzO1lKfG OhvFdTQMfVCj5flGXLgBIFWY6FPpdxZmR9O46jUpcN+qj22G3kjikdQlzyImEA4EAlUt jKN3eArlezLki2V+/2Lsv4mW70pAQ2dfDpiFIdFgOmhF0UR8q7k02ZlSYFD/qDGVQALt KJ6CEZX2mdT5Dmbm8WF2mVRpGL5gsi79Ytt7gF799J9+/mLryBY8j6KfECwbmP/Q8gKx IFSg== X-Gm-Message-State: APjAAAWx2bqJaXHofJPG1mBzAiWYsgAktTXI4gexrPf43cD3bJ3F16ZV 9OM+LS+nYWSVD8PvuuP2mJ1y7PhMKnY= X-Google-Smtp-Source: APXvYqyWY7zPRoAYEBOB4IlQhvLVd9H+4ZMktM5UZfTWxcp5Fb4L1f0rq9Bntk6Uq8RtBLHa9AnplA== X-Received: by 2002:a7b:c8d9:: with SMTP id f25mr1841196wml.173.1571209093173; Tue, 15 Oct 2019 23:58:13 -0700 (PDT) Received: from 6wind.com (2a01cb0c0005a6000226b0fffeed02fc.ipv6.abo.wanadoo.fr. [2a01:cb0c:5:a600:226:b0ff:feed:2fc]) by smtp.gmail.com with ESMTPSA id l7sm24688974wrv.77.2019.10.15.23.58.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 23:58:12 -0700 (PDT) Date: Wed, 16 Oct 2019 08:58:11 +0200 From: Olivier Matz To: Stephen Hemminger Cc: dev@dpdk.org Message-ID: <20191016065811.d3oeuw5qgp6dpj6h@platinum> References: <20190928003758.18489-1-stephen@networkplumber.org> <20191008163350.20779-1-stephen@networkplumber.org> <20191008163350.20779-5-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191008163350.20779-5-stephen@networkplumber.org> User-Agent: NeoMutt/20180716 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 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