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 5D643A2F67 for ; Fri, 4 Oct 2019 23:47:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 820E71C2DA; Fri, 4 Oct 2019 23:47:50 +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 4C9001C2A1 for ; Fri, 4 Oct 2019 23:47:49 +0200 (CEST) Received: by mail-pg1-f193.google.com with SMTP id y35so4516093pgl.1 for ; Fri, 04 Oct 2019 14:47:49 -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=8xow/SXJgzuHOf+KNYKDWgaoiE6/LRSerRFPe2z84qQ=; b=daS3uUO/eOTUqP5xklJCah6URU+lGeUv2TfDJp5gbTz3CGolNhIiDdkcdY3hetdKJk zRZhC8dT+kNpgvn7hBrShSPSbSNsPTO5KmZ4Yc/rzGJmfPQeBMPHUDXHiFAuUXudeDX4 HCcptelhUqnmkb2kZKYatY/4H2DYnqskDL3eEirL1Wa6Vibb92RoRlTgGIyQAEmE2lZx eFxyR7uwlv0nAQonk+UarMjZsM4ZPRZ5j64nmyDt9uiuh+s6gbRpxMiraDLraOlONRZe gTzsQkbCaw626DEv7EHodFVJIFZtse63v0EdcHDvgUl28a5zNP4saQR1NNm4ky+VMXjd dcNg== 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=8xow/SXJgzuHOf+KNYKDWgaoiE6/LRSerRFPe2z84qQ=; b=iOHZD/7nZpy0R9bcrwKFVayZRviITeiv0VgoYQEwRu1mbG1w6rtzTKAJRkWr1dhI5D Zwnb9+MAJQR5wCyp2Rxd2+mXEyjOebayFYksybNmZrZCXsttriBj4okTzutxY8H8oupO OqHoocgLI41Ue/VgF2grj/XdodM54cmfJZRhOwMElSDEks/ObZDXn0xv7vqRCGYsmeQ0 pEQe/loKpchGnw7acHg/wswvxHwydwMtD1V6mA+rJ0aBCYsmSZs3T3tYDkDfuuboNBZW IgM7BP09jD/eHER05RxupF+94YF9y0EXgv2eeQ9PJgBqpCX7bXJkF3ug4cU/T5ZPN+4y yAnw== X-Gm-Message-State: APjAAAWGsY8RuK8eI1TiJgOUPHOF/Z6ksMR/AOakwR2zMKzlp2TlwyDj 3EyFZT00tcDoUqh7e1x8vYS7cP2tcmrZFQ== X-Google-Smtp-Source: APXvYqwgKe/jtWI9ECTVhV1/B4zDNqh0m1dmJwc3BxZYVFs5yQuqzZr7H94hsoAgnyGr4oFLyZvCdQ== X-Received: by 2002:aa7:858c:: with SMTP id w12mr19690217pfn.113.1570225667662; Fri, 04 Oct 2019 14:47:47 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id q71sm6191355pjb.26.2019.10.04.14.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Oct 2019 14:47:46 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 4 Oct 2019 14:47:39 -0700 Message-Id: <20191004214743.24686-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 v4 0/4] 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. 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 (4): 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 app/test/test_mbuf.c | 3 + lib/librte_mbuf/rte_mbuf.c | 145 +++++++++++++++++++++++++++ lib/librte_mbuf/rte_mbuf.h | 127 +++++++++-------------- lib/librte_mbuf/rte_mbuf_version.map | 8 ++ 4 files changed, 206 insertions(+), 77 deletions(-) -- 2.20.1