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 2B0BDA2F6B for ; Tue, 8 Oct 2019 18:34:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 380C61C2A0; Tue, 8 Oct 2019 18:34:01 +0200 (CEST) Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by dpdk.org (Postfix) with ESMTP id 16FF01C2A0 for ; Tue, 8 Oct 2019 18:33:59 +0200 (CEST) Received: by mail-pg1-f193.google.com with SMTP id p30so8449005pgl.2 for ; Tue, 08 Oct 2019 09:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Iw8cCLwmdY5XN1cDwVoqnUuTdnsAPAXhjHEK/af+sXQ=; b=tGO+mcR34YbJn7hIDQKTaawYdSZLHi6XEj3v8Im/Wbf947PtrwCerOZtaJliVNroBL jgS5HkZRfdFjdLdb643moqH+TAmY4cShdy7FwAYOEpEer1JtCGW2Ck3bXkw+zXsEqby7 gZ2t7s5PgypWkmN1nd82OtRXgCHXknJWq3L+Sk2WEdyQggrpONdBMnATlxw2GDEMoK32 JAKJyR+lpAUx5NJ7Nm5RwfFCwytvNzefeCYTiyQNKBa1wPP1i9RSCcrcy3sQ6QgY+fG0 jyAu3gz1SGkhCzeY44n3lIDz4EUviAalXhEQEyYhlljoDyUQBmAUjD5McTbSAHC/+62f fvxg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Iw8cCLwmdY5XN1cDwVoqnUuTdnsAPAXhjHEK/af+sXQ=; b=PTDHQTbMc6ixiMvGR71P3DcIdmUVV/8ATl7DkH9vNBZJ3tN2JjNJ77YSh7ThVGJgaB 5QeKfCk/eSm0AfCJd2OBibPhw9RrRrk/7+zh525GJQ997vVEgbYqC0NoxLvJ5pbHQNO8 2Y4xWri4yBG6uy3t9MB6pGlvR2noX5ehIWql5Gc9wtiLvm9zW6zslvoF+oSeE+AzoJ7m 7rn+mrgMtUija7Wb/VwSdKpy1UIuEywv2UNhsA9a0CWUHLncjDc6CFPWCOmkebWNgoJk hNfOFpHCfS7gz8QMa7fj4QHzcNcVQXNPSNp6liN2nfxmPNzjNrB2THfwuaZcbGEheGyB mKWw== X-Gm-Message-State: APjAAAX19OsGj9/cx3gvOhzqch3ezjBEFnB0ivGYGm/z8IBMIDehfWOp P/5Emseqy/5Hcr2GuZgIAHm8dzvnJQbmJg== X-Google-Smtp-Source: APXvYqxNV5VNiGjC7tyOVH7j/v9eKPRF92jhqO5Lx+YUIiMNtnDa8BTftZpwCcJUvLWInZi1QXqJTg== X-Received: by 2002:a17:90a:c306:: with SMTP id g6mr6776352pjt.38.1570552437404; Tue, 08 Oct 2019 09:33:57 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 18sm17702551pfp.100.2019.10.08.09.33.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2019 09:33:56 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Tue, 8 Oct 2019 09:33:45 -0700 Message-Id: <20191008163350.20779-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190928003758.18489-1-stephen@networkplumber.org> References: <20190928003758.18489-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v6 0/5] mbuf: copy/cloning enhancements 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" This patch set is all about improving the mbuf related cloning and copying. They are motivated by seeing issues with mbuf copying in rte_pdump and realized this a wider and more general problem. The pdump copy could not handle different size pools and did not handle meta data, etc. They cause no functional or ABI changes. The only visible part to older code is converting a couple of inlines to real functions. This kind of change confuses checkpatch which thinks these new functions should be marked experimental when they must not be. v6 - incorporate feedback from Oliver for pktmbuf_copy add more comments and tests for pktmbuf_copy v5 - add back the test (dropped by accident in v4) v4 - common mbuf header fields copy routine v3 - split linearize into internal/external copy private data in pktmbuf_copy v2 - add pdump use of pktmbuf_copy fix version in map Stephen Hemminger (5): mbuf: don't generate invalid mbuf in clone test mbuf: delinline rte_pktmbuf_linearize mbuf: deinline rte_pktmbuf_clone mbuf: add a pktmbuf copy routine mbuf: add pktmbuf copy test app/test/test_mbuf.c | 160 +++++++++++++++++++++++++++ lib/librte_mbuf/rte_mbuf.c | 153 +++++++++++++++++++++++++ lib/librte_mbuf/rte_mbuf.h | 129 +++++++++------------ lib/librte_mbuf/rte_mbuf_version.map | 8 ++ 4 files changed, 372 insertions(+), 78 deletions(-) -- 2.20.1