From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id 7D3F81B3A5 for ; Thu, 2 Aug 2018 01:18:37 +0200 (CEST) Received: by mail-pg1-f194.google.com with SMTP id r5-v6so165246pgv.0 for ; Wed, 01 Aug 2018 16:18:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=wLNF49krzYmxv2Q9FvQJu6icAHBcn+qcfLeKndlLNXk=; b=VGnCjEpadd21QgANz+T3dwOT7zmpNOaTVgvQ1Iomu4EfX1cofpG3AemvOISy19T77p dSBah3tig5c1LvfKSmowa1r5Y6JlxwSvtLmSLVASXoD3y3jOOuBDRNcUvsHZo6xq83d4 eenEM8uFE7cRR8572BD6lNqJMuJkUQGMRn860wf0DtPZEPrbJl3aGa1vw4DcALszgsER z6cKxLVGf7pN+Hcv+B9FJ7vpKDv8jfR/6v+n5zX//GdD4/yqosPYn2rN4BktNmmkxa0y weW3pXxFWCKoOWWQ9mOs4mtk4Xey7+sPf9xbcR/e1YBT+SEnrRFqYCMAsGltm8OFbc57 w+dA== 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; bh=wLNF49krzYmxv2Q9FvQJu6icAHBcn+qcfLeKndlLNXk=; b=CGZpvz4mogJ6m4VDDWpJHJvTXVCuUoqYqRSQpThTkYMg9QuC7b6vKI+fLh+CWM4+ze wkVrHAQcwD96+hQF/RbiLxaByUmxVeLvLP4vRgwJqA5Gm2wmJQq9+ixeMIaTJjvYbF/h HIedo7JAdjYN4OTsTwORbJTVxCsdSczCNfISlQWwv/2/sgBvrqQI71EojnQGFOR8RA/7 pBRTglMC1B5hUgoAnbIyslWkoa97RBW8+YW6Gw6Rp/ut+kkUAgrn4bmIrGsaGYMK9cS3 OFk42ZKm3ua6CikXI98ol3+rpRUkbOpCXUQE/56rl9XmYLY3dUmIhSlMU1hKz6vARRAO CiIQ== X-Gm-Message-State: AOUpUlHM1VhVNQw570cXPShoQfc4EzRUli/52ol8TpZuRB8EosUR5PiX ixUiLJQPQfmYxwnAGrKX9EA/8aQZKU0= X-Google-Smtp-Source: AAOMgpdAEpu+glx56wlbtA9KvgKvU3fbC78T/C0ua0YsLaaykGLwtzQO/Dd0Fo49cCHIGanhQ4gMNA== X-Received: by 2002:a65:5286:: with SMTP id y6-v6mr326501pgp.65.1533165516409; Wed, 01 Aug 2018 16:18:36 -0700 (PDT) Received: from xeon-e3.wavecable.com (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id s27-v6sm255784pfk.133.2018.08.01.16.18.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Aug 2018 16:18:35 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Stephen Hemminger Date: Wed, 1 Aug 2018 16:18:33 -0700 Message-Id: <20180801231833.5846-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.18.0 Subject: [dpdk-dev] [PATCH] netvsc: free ring with rte_ring_free 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: , X-List-Received-Date: Wed, 01 Aug 2018 23:18:37 -0000 The internal receive ring should be freed with rte_ring_free not rte_free. Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device") Signed-off-by: Stephen Hemminger --- drivers/net/netvsc/hn_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/netvsc/hn_rxtx.c b/drivers/net/netvsc/hn_rxtx.c index 6d2f41c4c011..400598a621f1 100644 --- a/drivers/net/netvsc/hn_rxtx.c +++ b/drivers/net/netvsc/hn_rxtx.c @@ -774,7 +774,7 @@ hn_dev_rx_queue_setup(struct rte_eth_dev *dev, return 0; fail: - rte_free(rxq->rx_ring); + rte_ring_free(rxq->rx_ring); rte_free(rxq->event_buf); rte_free(rxq); return -ENOMEM; @@ -790,7 +790,7 @@ hn_dev_rx_queue_release(void *arg) if (!rxq) return; - rte_free(rxq->rx_ring); + rte_ring_free(rxq->rx_ring); rxq->rx_ring = NULL; rxq->mb_pool = NULL; -- 2.18.0