From patchwork Thu Jul 30 09:56:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yang_y_yi X-Patchwork-Id: 75029 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 376D5A053C; Thu, 30 Jul 2020 11:56:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 18ABF11A2; Thu, 30 Jul 2020 11:56:18 +0200 (CEST) Received: from mail-m972.mail.163.com (mail-m972.mail.163.com [123.126.97.2]) by dpdk.org (Postfix) with ESMTP id 9A3DF3B5 for ; Thu, 30 Jul 2020 11:56:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=Cd7U/ XVMlSAQJJsXk1N9kJVnR9kbeKHVh5XDyG+Y61E=; b=RW2I/VeCrz6o6rmzGTaEk g+oEQmjnU0E9seX3vV1Gw8gMRVrUTwHVaSTvpXwUKAPsqgqWmEMEfKQIg3165C3j KVtDYEOPNtH2EIWBYWT2gzPDYFNyzSzhmIkRVzGJtV3t1c8MIIiXUoE6TCXc8gbz PmsIs8Wez8lGaZnbSSRlKI= Received: from yangyi0100.home.langchao.com (unknown [111.207.123.56]) by smtp2 (Coremail) with SMTP id GtxpCgCXFdk6mSJfhBGTHg--.3074S2; Thu, 30 Jul 2020 17:56:11 +0800 (CST) From: yang_y_yi@163.com To: dev@dpdk.org Cc: jiayu.hu@intel.com, thomas@monjalon.net, yangyi01@inspur.com, yang_y_yi@163.com Date: Thu, 30 Jul 2020 17:56:07 +0800 Message-Id: <20200730095610.93384-1-yang_y_yi@163.com> X-Mailer: git-send-email 2.19.2.windows.1 MIME-Version: 1.0 X-CM-TRANSID: GtxpCgCXFdk6mSJfhBGTHg--.3074S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrKr13WryUCFy5JF4UCw4xtFb_yoWkJrc_ZF yxuFy7J34UJFWIyFW5CF1qy3yq9a1xCF1xWan7tryavryaqFn8Wrn7Cr1ruFnxWa15J3Wx Gr1jvF10qr4IqjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUUj2MUUUUUU== X-Originating-IP: [111.207.123.56] X-CM-SenderInfo: 51dqwsp1b1xqqrwthudrp/1tbiFgZxi144Mb9-GwACsk Subject: [dpdk-dev] [PATCH 0/3] Fix external mbuf free issue in GSO case 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" From: Yi Yang It is impossible to fix external mbuf free issue in GSO case, the issue is GSO case only can free buffer in external mbuf but can't free this external mbuf because this is done by free_cb, in order to fix it, free_cb interface has to been changed to adapt to GSO case, this patch series are just to fix it completely, OVS DPDK is typical consumer application. Yi Yang (3): gso: fix refcnt update issue for external mbuf mbuf: change free_cb interface to adapt to GSO case vhost: use new free_cb interface to fix mbuf free issue app/test-compress-perf/comp_perf_test_common.c | 2 +- app/test/test_compressdev.c | 2 +- app/test/test_mbuf.c | 2 +- drivers/net/mlx5/mlx5_rxtx.c | 2 +- drivers/net/mlx5/mlx5_rxtx.h | 2 +- drivers/net/netvsc/hn_rxtx.c | 3 ++- lib/librte_gso/rte_gso.c | 5 ++++- lib/librte_mbuf/rte_mbuf.c | 4 ++-- lib/librte_mbuf/rte_mbuf.h | 2 +- lib/librte_mbuf/rte_mbuf_core.h | 2 +- lib/librte_vhost/virtio_net.c | 22 +++++++++++++++++++--- 11 files changed, 34 insertions(+), 14 deletions(-)