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 E44E1A09E9; Tue, 8 Dec 2020 21:15:29 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C50BDCA18; Tue, 8 Dec 2020 21:12:02 +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 D9C42C974 for ; Tue, 8 Dec 2020 21:11:55 +0100 (CET) Received: by mail-pg1-f194.google.com with SMTP id w4so13166300pgg.13 for ; Tue, 08 Dec 2020 12:11:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version; bh=WB1WzBOdVxPLNzl8iX6yRpgw7A0I4SOLhLSJ1cuyqtY=; b=gJ1Z0tNO2bTwz2dwbSFg/RTGS5D8Ewdz2fxFI3SF9f1k6wyAyj2Ln9zkIJlBNzZKjP hT7HK3ALokWKDbO77RzKZ2CYUQrNjSEmas6eymnRjrHkujeFdND1ueqN+ZXjy7PMcwAn yaDBhTX4b3eLi1UD4VZwQcpyua7OQAk4sIEEY= 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; bh=WB1WzBOdVxPLNzl8iX6yRpgw7A0I4SOLhLSJ1cuyqtY=; b=VP1ZhaxPKOVG20z34wXM+xIX9IvX8jjvmutFgBjwe9Nb1+ZAt8zIyVAr2WlOIUsQJp OLdOX36qffKtdHvaIP9h4nBhqifhWMSwygOjZGg3Ppb9QbETLfcNpGxL7Y3iF5XWaXtE 3U+lBgX8asmcSIkIJ3LH9eLKWopZLdwDNrjVnpusiBKvTox0cPrXazUQDJXxDbIBE7Ow PQITl4E9vjTuTLkXGq52z1lP7Vo36sGQ9LGgIe6X0zRnnhGp+OMV+hRbuUY0dy4cj1ja JXFvw6TPmiThd17bK+pSi5QPgLMe4t1IWW3eHV20VqcFFW8TeY0lrXHCd7vRkY/SfpiF O4Hg== X-Gm-Message-State: AOAM530z0uvDkKRYrgtS3iX9VdQGsWu0S3hYj307VIXdn9jOaM3h4fnu w4477LZdztzNKNUjdxoB6xq5qwpux4l1yXnP4d2+J3klEHjxqjB/1LeuXYQvwmu32qoFHeMaM64 tRPsB4LJL3TuR+lYczNh+FEjDDfLAr1Qd8MNXcLgm22VDo5sfEHDJXrVgy+qTqg9ong== X-Google-Smtp-Source: ABdhPJxsuwMDL8iMo/rvcG2TINCgytwtLmqJyDITe/Qrryn+vXORB97adgRECsd+05zf0iDpZds8cg== X-Received: by 2002:a05:6a00:2384:b029:19a:eed3:7f42 with SMTP id f4-20020a056a002384b029019aeed37f42mr21914598pfc.4.1607458313649; Tue, 08 Dec 2020 12:11:53 -0800 (PST) Received: from localhost.localdomain ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id x10sm5729187pfc.157.2020.12.08.12.11.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Dec 2020 12:11:53 -0800 (PST) From: Ajit Khaparde To: dev@dpdk.org Cc: Somnath Kotur Date: Tue, 8 Dec 2020 12:11:28 -0800 Message-Id: <20201208201134.47844-12-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.21.1 (Apple Git-122.3) In-Reply-To: <20201208201134.47844-1-ajit.khaparde@broadcom.com> References: <20201208201134.47844-1-ajit.khaparde@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] [PATCH 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) -- This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.