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 2981EA2EDB for ; Mon, 30 Sep 2019 21:21:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9B5B349DF; Mon, 30 Sep 2019 21:21:02 +0200 (CEST) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by dpdk.org (Postfix) with ESMTP id 35CD037A2 for ; Mon, 30 Sep 2019 21:21:01 +0200 (CEST) Received: by mail-pf1-f196.google.com with SMTP id a2so6137776pfo.10 for ; Mon, 30 Sep 2019 12:21:00 -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=5HCg5a4jgANHJn7dM1RUyDnH4fhX4OogYrvbEtF9fIs=; b=JuiifX9A/M+sLycd6ShwhnGOEpG2TvDvTT3b6OPGxHuX4BQ1CP3uiN5E0m9YiT0ChL 1fgsE5ACyIaA5NChgxvr8Z7cAxA73fjLfe+CNA6/fVgIyXL/euzLPyzTgXqI5ObygiCW GEKO/dcGOD6l1Q16SHT3bzNboavN371UA/iqN6fvShwbVMp3ozpnbif8kczRyiV1nAre RfKkr5UrETpUhw8cXI5SY/Qja38Db7ogqzRPLN9lxXFxTI5DuvYos5bkdiyOC8N/q6TZ 3252z01O4gQlUME4wbV1zPZMbxx+5rw+co1hb96SvvessCXBQgWA2u2Z5ReQAVu9KP0D 0BNQ== 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=5HCg5a4jgANHJn7dM1RUyDnH4fhX4OogYrvbEtF9fIs=; b=twuW1hxh/X1eysTYPNXR2YJPUzree+VlLI+tqdOnDO0o5FdVPokVAiet/fOsM359Hc C8Bl0GHQXrE4lU2Amxb161/9OC+oDqMhRx/Fql2n3k5XsUql7MFTnO0RvbtFB6/qagUG 1362czBzMfKfPDEdovhNpq9m1QyK6H70iNL1seXTybAugz4qlzldAilw3xNwFpSOOJZv 6dTJGIqV2ddsIK+WAHe3nuqkRTI7PX5EWsvfIEOzrfE0O+dHF03kiNwsSGaXaNTmHa+1 kFw+LlbpcJweHPpSm3s8xtdVF3PrMjE7eItdIIOI6Lk6S4cLIWDNVYUTEERr7JUs1MVQ wGFA== X-Gm-Message-State: APjAAAXe+GeE6fwkGzkdQrlsgM13KSUZIM2DiKAcPxWG1XkhXUmGPE0U D/mv4k2kyvc3B/jyZeG0BS1XPCRPFYk95g== X-Google-Smtp-Source: APXvYqx5pYdgmMiTNXeB6zpSxzGU/QzUBzVLEN24Bz8CdJmciyt+m3F0328RYLsSTDA9L/bZzXJB+w== X-Received: by 2002:a65:60cd:: with SMTP id r13mr26500961pgv.421.1569871259701; Mon, 30 Sep 2019 12:20:59 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id c64sm14788304pfc.19.2019.09.30.12.20.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2019 12:20:58 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Mon, 30 Sep 2019 12:20:50 -0700 Message-Id: <20190930192056.26828-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 v3 0/6] 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. 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 (6): 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 pdump: use new pktmbuf copy function app/test/test_mbuf.c | 129 +++++++++++++++++++++++ lib/librte_mbuf/rte_mbuf.c | 150 +++++++++++++++++++++++++++ lib/librte_mbuf/rte_mbuf.h | 100 ++++++------------ lib/librte_mbuf/rte_mbuf_version.map | 8 ++ lib/librte_pdump/rte_pdump.c | 69 +----------- 5 files changed, 321 insertions(+), 135 deletions(-) -- 2.20.1