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 497B8A054F; Mon, 15 Mar 2021 17:57:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 10BD0242739; Mon, 15 Mar 2021 17:57:36 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mails.dpdk.org (Postfix) with ESMTP id 13D46242732 for ; Mon, 15 Mar 2021 17:57:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615827453; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8Wtlp6ReVH+w3HrUxwoU2MyhPh+QKa/l7wTCJGdTq+4=; b=E3nEMGL5OcknA1gqb3qQbTxet6ylV8UpBN5i+5fnJWcH0ztFTvX/A7h+GHNmh70aP/T8tE EhjR50Q8Z0zc89ibbbs172SACqCEGmpeELe86PRa9adEqiOtj5VEgsUNPvYYPrRK19hsnC BVhNnjAbGdyQm4IDBmTWMXp06QqTYys= Received: from mail-ua1-f72.google.com (mail-ua1-f72.google.com [209.85.222.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-226-4TVara0FPTm4LJJEmIPjtA-1; Mon, 15 Mar 2021 12:57:32 -0400 X-MC-Unique: 4TVara0FPTm4LJJEmIPjtA-1 Received: by mail-ua1-f72.google.com with SMTP id f1so1097597uaj.5 for ; Mon, 15 Mar 2021 09:57:32 -0700 (PDT) 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=8Wtlp6ReVH+w3HrUxwoU2MyhPh+QKa/l7wTCJGdTq+4=; b=ObkCNcQtfOykySCdiIjx0HfinlqiThAvm8waGwMoxHmhw0dUzDtxTDidL9mMKqbKRh sc7f7fouhNXTEU5Lk9e8R/63QMaKIK0DxC8ZGMjFOqCRLHK34PsdrsQRh+GC0pRP9tl7 S4SrwF5zkWa7/YRG5yBNzARETf0WmJhInmls6tx2qsZwHkc/GMpCo57l/iQKhGTFdFd6 R6rJUeGCMF7E7XWj/JsFbORcWx3LgwpISMdKsFO2K/1kHq8drrmACWRfC1lakj2f7OLQ Vb1QPykfAKfaUgI+eVc49hogEoudhaW1sC3B5AfJhevaPIRgbYZDls0UGoRuCeeNWRzQ /9AQ== X-Gm-Message-State: AOAM530D+P/xcCQ8TyDhAnTFSJMY8+Kbs8b+g7wYLuiVLa2+riK4fViY CkNNg9lgBr66dHUwCCn9hjISVj03LXN8mKeM+gzvKoZ58JASM3eBc89ys6zx94jGRjqX5EDYDVr RZlbJMOt0w0ff23UqgBM= X-Received: by 2002:a1f:9ac7:: with SMTP id c190mr5213103vke.17.1615827451586; Mon, 15 Mar 2021 09:57:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd1dfqFm+GExG+oAr9zcjJvIXuBjyEhtnmv3ytoUgvo9PXsXRDeo/dNucdX8tteA/42vMii5mJI1GKfxDi+iA= X-Received: by 2002:a1f:9ac7:: with SMTP id c190mr5213098vke.17.1615827451409; Mon, 15 Mar 2021 09:57:31 -0700 (PDT) MIME-Version: 1.0 References: <20210315164619.372575-1-maxime.coquelin@redhat.com> <20210315164619.372575-4-maxime.coquelin@redhat.com> In-Reply-To: <20210315164619.372575-4-maxime.coquelin@redhat.com> From: David Marchand Date: Mon, 15 Mar 2021 17:57:20 +0100 Message-ID: To: Maxime Coquelin Cc: dev , "Xia, Chenbo" , Adrian Moreno Zapata , Olivier Matz , bnemeth@redhat.com Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v3 3/4] net/virtio: allocate fake mbuf in Rx queue 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 Sender: "dev" On Mon, Mar 15, 2021 at 5:46 PM Maxime Coquelin wrote: > @@ -612,6 +622,8 @@ virtio_init_queue(struct rte_eth_dev *dev, uint16_t queue_idx) > > clean_vq: > hw->cvq = NULL; > + rte_free(fake_mbuf); > +free_sw_ring: > rte_free(sw_ring); > free_hdr_mz: > rte_memzone_free(hdr_mz); > @@ -641,6 +653,7 @@ virtio_free_queues(struct virtio_hw *hw) > > queue_type = virtio_get_queue_type(hw, i); > if (queue_type == VTNET_RQ) { > + free(vq->rxq.fake_mbuf); rte_free() -- David Marchand