From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D2F8C46012; Wed, 8 Jan 2025 03:40:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8E9B140150; Wed, 8 Jan 2025 03:40:49 +0100 (CET) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id 602B44014F for ; Wed, 8 Jan 2025 03:40:48 +0100 (CET) Received: from mail.maildlp.com (unknown [172.19.163.252]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4YSXDS3d9wzpTRn; Wed, 8 Jan 2025 10:39:04 +0800 (CST) Received: from kwepemf500004.china.huawei.com (unknown [7.202.181.242]) by mail.maildlp.com (Postfix) with ESMTPS id 233A5180214; Wed, 8 Jan 2025 10:40:46 +0800 (CST) Received: from [10.67.121.175] (10.67.121.175) by kwepemf500004.china.huawei.com (7.202.181.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 8 Jan 2025 10:40:44 +0800 Message-ID: <29acb21d-a6d9-04bd-d528-10d1ccf3f7ce@huawei.com> Date: Wed, 8 Jan 2025 10:40:43 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH 1/3] net/hns3: fix simple Tx path incorrect free the mbuf To: Stephen Hemminger CC: , , , , , Chengwen Feng , "Wei Hu (Xavier)" , Huisong Li , References: <20241230065405.18552-1-haijie1@huawei.com> <20241230065405.18552-2-haijie1@huawei.com> <20241230095530.7cb2f643@pi5> From: Jie Hai In-Reply-To: <20241230095530.7cb2f643@pi5> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.175] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemf500004.china.huawei.com (7.202.181.242) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 2024/12/31 1:55, Stephen Hemminger wrote: > On Mon, 30 Dec 2024 14:54:03 +0800 > Jie Hai wrote: > >> From: Jie Hai >> To: , , , , , Chengwen Feng , "Wei Hu (Xavier)" , Huisong Li >> CC: , >> Subject: [PATCH 1/3] net/hns3: fix simple Tx path incorrect free the mbuf >> Date: Mon, 30 Dec 2024 14:54:03 +0800 >> X-Mailer: git-send-email 2.22.0 >> >> From: Dengdui Huang >> >> When RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE offload is not set, >> use rte_pktmbuf_free_seg() to free the mbuf. >> >> Fixes: 7ef933908f04 ("net/hns3: add simple Tx path") >> Cc: stable@dpdk.org >> >> Signed-off-by: Dengdui Huang >> Signed-off-by: Jie Hai > > What about the fast free case which is using rte_mempool_put_bulk when > it should use rte_pktmbuf_free_bulk instead? > > Hi, Stephen Hemminger, During the fast free case, the performance of using rte_mempool_put_bulk is higher than that of using rte_pktmbuf_free_bulk because other references to mbuf do not need to be considered. So it's better to not change. Thanks, Jie Hai