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 0C737A052B; Thu, 30 Jul 2020 14:09:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 348B41C029; Thu, 30 Jul 2020 14:09:13 +0200 (CEST) Received: from mail-m974.mail.163.com (mail-m974.mail.163.com [123.126.97.4]) by dpdk.org (Postfix) with ESMTP id 77344E07 for ; Thu, 30 Jul 2020 14:09:04 +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=nglBhc0o5isM/JgFFtzFj PMzXvRPsnxSO+mwif6RL6ueBpzdNmdLb/sbbJR10SJHTJ9YFSsjsP3ASxUE/CPXi 8ba4XHbgwKUudu8wCYaglwg/Vk5mhcHeiMfdj2Fwnb1Ih2wLdQPhHIH46bnGVYRY i6qUE/cA95PBkPmXNEgHs0= Received: from yangyi0100.home.langchao.com (unknown [61.48.210.155]) by smtp4 (Coremail) with SMTP id HNxpCgBXekNcuCJfZo1vIA--.3698S2; Thu, 30 Jul 2020 20:09:02 +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 20:08:57 +0800 Message-Id: <20200730120900.108232-1-yang_y_yi@163.com> X-Mailer: git-send-email 2.19.2.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: HNxpCgBXekNcuCJfZo1vIA--.3698S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrKr13WryUCFy5JF4UCw4xtFb_yoWkJrc_ZF yxuFy7J34UJFWIyFW5CF1qy3yq9a1xCF1xWan7tryavryaqFn8Wrn7Cr1ruFnxWa15J3Wx Gr1jvF10qr4IqjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU173ktUUUUU== X-Originating-IP: [61.48.210.155] X-CM-SenderInfo: 51dqwsp1b1xqqrwthudrp/1tbiqBBxi1c7RBg7xwAAsO Subject: [dpdk-dev] [PATCH V1 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(-) -- 1.8.3.1