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 6400BA04DB; Wed, 9 Dec 2020 20:26:28 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 090F2CA22; Wed, 9 Dec 2020 20:23:03 +0100 (CET) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id 5486AC9D8 for ; Wed, 9 Dec 2020 20:22:55 +0100 (CET) Received: by mail-pg1-f194.google.com with SMTP id o5so1812181pgm.10 for ; Wed, 09 Dec 2020 11:22:55 -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=Xx1Naifsopf5jumPW+Bfh9QUBH36BGIJkHnECtwGb0Ol8vwDXTz/cv4fhP5HZAOt2e vU/JxR82m11bpWSVYvUxh8gcRgqh3Y+UJPFkrgQfD4G91MfPSDZNI8gc+mCN2O4FiirP FPZPVIATFK26w/zmRwKP4u+QbscN42AWa++LFcM2PnhtEuWsWNRC8IeTn30jwhZAZa2w pIz0xMrbLxIA2r/lgcY27lzJ4i7uTLS9kv64lNpvtNz/SojG9ncyZ5Asub8i81eqcFXY ePyDT8XDVPjXN/PuPtMUB+S1O/h/CG4St0fYGU0wzvzNcl2lM0MT0eELHYYKkp5hA/Li +y8w== 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=gie8lBfePwG7w1fYPFr6eQUDzq1fXL519HsdGsqJw10qezDqppEg/g8dnIAIG1W9Xh uapj1UmxR2pGo9cSRB2pu7GsGoaebUZlo39kPy70HWN8QHuQwauTc1ayd46nzkqWr4qt 5BAgD9M/aBmitmQ9dHoRD9X0mK3FObBgWwBROjqOlxHNEY0LWAlNfT9Utn5rasT5ZuV1 5S+EyWz7HHbNgK2RmKqjwf5eMrMmPa7HzKf7rxvIY2w1snmz8yxjuA/Vdz3O3yk5ncUK ep7TzPqCmvWjv28MT1ZuEF2E2KX/icdwbh1y6EGnuNT4o8yTatkpFjtKtGHQ8BlDgj2a mgHw== X-Gm-Message-State: AOAM532t7zzGcQdesG9+Ayur6/lh6o6W1Tr5fs+qeeiXbEq+DtJHuHkB uDWyt/PClLxKCw35/U8um4Vszp7T85K3z0rQ X-Google-Smtp-Source: ABdhPJz0yRQA2vUvIKtSE/N+h2vs1CU2dTxiXS0jPoXvMNnul9D/jKajmu/+J2sZW8wmMAV8nRVSMw== X-Received: by 2002:a17:90a:4142:: with SMTP id m2mr3661928pjg.156.1607541773345; Wed, 09 Dec 2020 11:22:53 -0800 (PST) Received: from localhost.localdomain ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id y1sm3342449pfe.80.2020.12.09.11.22.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2020 11:22:52 -0800 (PST) From: Ajit Khaparde X-Google-Original-From: Ajit Khaparde To: dev@dpdk.org Cc: Somnath Kotur Date: Wed, 9 Dec 2020 11:22:27 -0800 Message-Id: <20201209192233.6518-12-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.21.1 (Apple Git-122.3) In-Reply-To: <20201209192233.6518-1-ajit.khaparde@broadcom.com> References: <20201209192233.6518-1-ajit.khaparde@broadcom.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 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)