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 18301A04DB; Thu, 10 Dec 2020 00:57:45 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 04DC4C9D3; Thu, 10 Dec 2020 00:54:16 +0100 (CET) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id B327EC9F2 for ; Thu, 10 Dec 2020 00:54:08 +0100 (CET) Received: by mail-pf1-f193.google.com with SMTP id 11so2297131pfu.4 for ; Wed, 09 Dec 2020 15:54:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4jeTm1NVMmdCcN7PZPiK3/vW2yEl+BMX+VbcLvlHPK8=; b=A4U9aubFJC2MRpSiEiFtk9LU/SFrR7LRW6tanFoU4/5exveFDAhY8YnYtagSx4F1XR J0RadqEqDhiz3MH18hrLeCs5huNiv6hARuCEIO1wIMn7IubWWBUYfw94IJlRs5X81z41 Cky3WXs7hXfTbKumI5bRKd8gHhF4r22VxaGpIIN5F+kMSxWtZ0Zszd68HEWmw7fZvLQB FCNE+B33RoK//lZCmiKsXg5V9PpgEfIbp7GWzfEP997KGzy2Xmmndm31dJhOsLePOILU g66QynngiA56H6ZqgiRwPgipjyuiLkLhVTZyc6PWRf6L1Qdq3+N5hUgqWFsryRPpluXW 7XFg== 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=4jeTm1NVMmdCcN7PZPiK3/vW2yEl+BMX+VbcLvlHPK8=; b=jHWfDx7lHDXzsST97DcsY/IM+UZ1k6KV4Rl2khw6W6+qPkPn35ZMLQs1Yg8UBaOHth LZq5/FyPL1wSxzPeh1Iml4rbPGVolZkrlnyBsfyqqkVnmhIylodXRbapkqGqzi52ZoW6 JxYEmdQTtvFoxONva8Y7OtMRT57gicI3YLIEe2LUSlKPEjVDEfao+NMf45qJN6AYxdPw ptLGZItu55pEHyDUeNA0dNu/55qus0nRllUTms/0bogPfzBbG58d667Udb5KQu5TXahA POLeBZ0GFFbD3T17CZQJDqgNiHTm1a0uua9xyFiT3+TIRX9Gp11LvLPDmF/yldNbiaEV pYwA== X-Gm-Message-State: AOAM531MFsrD/H66Wwjhg5kYmkHhnDVDjHc2FlR2G8vkXzJTQGiRugAu /zRz8yoYsqczl4huA3LZxYsjYun1pNIK17Hi X-Google-Smtp-Source: ABdhPJzrZowRkAJZNoD5d6P39Dnl9qf1z9t5fpBTgWByoQpiRHRhJrBTFZm/RjHupc5gDmth4hRHbw== X-Received: by 2002:a17:90b:4c51:: with SMTP id np17mr4460003pjb.180.1607558047687; Wed, 09 Dec 2020 15:54:07 -0800 (PST) Received: from localhost.localdomain ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id s7sm4047693pfh.207.2020.12.09.15.54.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2020 15:54:07 -0800 (PST) From: Ajit Khaparde X-Google-Original-From: Ajit Khaparde To: dev@dpdk.org Cc: Somnath Kotur Date: Wed, 9 Dec 2020 15:53:41 -0800 Message-Id: <20201209235347.16180-12-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.21.1 (Apple Git-122.3) In-Reply-To: <20201209235347.16180-1-ajit.khaparde@broadcom.com> References: <20201209192233.6518-1-ajit.khaparde@broadcom.com> <20201209235347.16180-1-ajit.khaparde@broadcom.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 11/17] net/bnxt: use the right function to free mbuf 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" mbufs are being allocated using rte_mbuf_raw_alloc(). Use corresponding rte_mbuf_raw_free() to free mbuf. Signed-off-by: Somnath Kotur Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_reps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_reps.c b/drivers/net/bnxt/bnxt_reps.c index e5ba0909b..167c46ad4 100644 --- a/drivers/net/bnxt/bnxt_reps.c +++ b/drivers/net/bnxt/bnxt_reps.c @@ -65,7 +65,7 @@ bnxt_vfr_recv(uint16_t port_id, uint16_t queue_id, struct rte_mbuf *mbuf) /* Representor Rx ring full, drop pkt */ vfr_bp->rx_drop_bytes[que] += mbuf->pkt_len; vfr_bp->rx_drop_pkts[que]++; - rte_pktmbuf_free(mbuf); + rte_mbuf_raw_free(mbuf); } return 0; -- 2.21.1 (Apple Git-122.3)