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 509B3A04DB; Thu, 10 Dec 2020 16:56:27 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2DD1CC982; Thu, 10 Dec 2020 16:56:26 +0100 (CET) Received: from mail-yb1-f194.google.com (mail-yb1-f194.google.com [209.85.219.194]) by dpdk.org (Postfix) with ESMTP id DBAF5C97C for ; Thu, 10 Dec 2020 16:56:23 +0100 (CET) Received: by mail-yb1-f194.google.com with SMTP id w139so5157359ybe.4 for ; Thu, 10 Dec 2020 07:56:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+fA8ouboHxGCEQuS8xT83CBGCstpb2GblNpSHRgD/f4=; b=VTO/Na7lHkRfj+CYfHOYLHpKk5BJLqzzF2HE2gdB0TS2+Gx45kq71fwLZTXmZHO8AE wkwy0WDjPhMatlte7lstkDaJYm2rP3dfb0zlSySLV/gvqXYy6I4O0NQvTs4rGW15yXXG lthY1BykxJ6AOAQSsmGP0THgyAboz0UJiadqGQX33MPS5NorxXrtgIzN4OmRVvjCDlDj Cpt7SfuBw+sw+hY+lz0OpVlwykHcXy0EiJuctX9jinDsafVYhLjaoQ7BSGBAaoFpXahk dIWM3lg1v5ZQhwJisNFJy9q02eyPKf/T2JaJ+iKNUIKyxh0MlYHZ7+hITHObOHAEzgTn un+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+fA8ouboHxGCEQuS8xT83CBGCstpb2GblNpSHRgD/f4=; b=XNP5Z73k764A3CnbXEjbbYujPGIhTxkdS8dvOiZ3qJwW+97k3OQ8Bm1ExAvvo3bZHF W6GxtrxyuUeDpjYN4/dt93hAvf6AUxuDy2SW28Ytm7u9tk6lm50SnAfBPsoEg03U89Jo ca6cUlwvsN3T5QIRDDfP5Yyo2F3i2HKf0Yt+FVVUeEW1cEKlunKUm8SQldJio86d3M3C UYc1QiYHA3YU2prmGeAygdZx8J21uLWvPSHE4LNNoledUNZHsiDbo5Olnu7Pt7NDYDxK 7YaQVT0Euh+JYuN0eAkRpGRWxbX696MJjHw8i4wyFNNp69kGC5xqjcAvXCsXu/A9Z3rN 4/7Q== X-Gm-Message-State: AOAM532cfX9vmWiI6Ili78V1697WXElcqXo4VgGd2WG0MGZuObv3XaPl k3+7u6whNhMKksL/ZJoS82ljWMl0ou1jJsgdQmM= X-Google-Smtp-Source: ABdhPJwu43XPPrXCgLCe4Xyc+VRgxSJ0td0AJQ1Opg3Wzp/PeoBgAZmdX5B2iRBIYYf1yNkX2yHdKirEBjvPva33Omw= X-Received: by 2002:a25:7c43:: with SMTP id x64mr10025523ybc.267.1607615782421; Thu, 10 Dec 2020 07:56:22 -0800 (PST) MIME-Version: 1.0 References: <20201209192233.6518-1-ajit.khaparde@broadcom.com> <20201209235347.16180-1-ajit.khaparde@broadcom.com> <20201209235347.16180-12-ajit.khaparde@broadcom.com> In-Reply-To: <20201209235347.16180-12-ajit.khaparde@broadcom.com> From: Lance Richardson Date: Thu, 10 Dec 2020 10:56:11 -0500 Message-ID: To: Ajit Khaparde Cc: dev@dpdk.org, Somnath Kotur Content-Type: text/plain; charset="UTF-8" Subject: Re: [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" On Wed, Dec 9, 2020 at 6:57 PM Ajit Khaparde wrote: > > 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) > Acked-by: Lance Richardson