From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 73690187 for ; Mon, 30 Apr 2018 16:43:39 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id u18-v6so8283374wrg.3 for ; Mon, 30 Apr 2018 07:43:39 -0700 (PDT) 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; bh=wgb3w/RJWjavvf3mQgZSRh06CSUHDk0lKsLMNBOLW/o=; b=lXmxpx2cjVFFWtrj64HRXxlh1iCueJZa3WtLpSe9LfASKpM9JvZPABY2fg8FY1fOPy 5XGsVYCVdtVugQoK0BaQCEidbQrNir8Co9pcAHaE8oHmQTyochiFs5ayoSPSgGoCWJ65 YRW4tgpSn2MRiakj+w9+4wOuB0beJg+4sTXkh/HaX4/4YEokxZaKvbcIipulTJmZOTD0 bzxKhPeLhGplf6bESQf8tqa/C6xqgKN2yXG74qOgh+iBJYzkkEOXuRVvy3nL4hl9THRk Z6KkRAcmTU62bi3Q9DweyyThyNcKmUVThrDPmkkbRkAza16VV7se8t6T5WdtgsqYv0aN VIKA== 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; bh=wgb3w/RJWjavvf3mQgZSRh06CSUHDk0lKsLMNBOLW/o=; b=UXJu23P9rNF/XkD9EWqpDA+k3ION0xfNyVy5Iteqcoowc/C3DbrIUuAlXHWu9Muuu2 FhFjBKPE6YaxrSTToOBCsrlty6s/cAE71pykB72cXIzkGGiC5xxMZuSGUpSuW+0eUj0A vaj6vPfMOjRjQ4HI8jkxifu2H1r6GyVhBivFQh+uzaIhwzYblXbUC5gvSPbXuHPb70zw z5Kcb92zsB71fyPhGROsvk6vmso+3FxpEH+NhpKsGyo8dpi/qP8XnjdIm8NnHRLkFc7z ARWUlJuakn4GnFvjy/U2MEc5jZT/Yd2LwJHr970kPBXwm6WfCVoCyXlORWRqUYPuq97b Megw== X-Gm-Message-State: ALQs6tCQIeZXg43VRc5KiG3RvUqYLUjsLD/4Kt69/3WC4pkrK8jYK7Mr OuOT6VHUpphoOCNDUr/Vaj0= X-Google-Smtp-Source: AB8JxZo4LiMCDweiQV3ldWlUYU+/ha51ItxyeFhdPvv/4a+kHuaibCup5HelkI0v8R+KsBvSeOUk1g== X-Received: by 2002:adf:c78d:: with SMTP id l13-v6mr4184818wrg.104.1525099419165; Mon, 30 Apr 2018 07:43:39 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id u86sm8750587wma.20.2018.04.30.07.43.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:43:38 -0700 (PDT) From: luca.boccassi@gmail.com To: Tonghao Zhang Cc: Ferruh Yigit , dpdk stable Date: Mon, 30 Apr 2018 15:41:01 +0100 Message-Id: <20180430144223.18657-46-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430144223.18657-1-luca.boccassi@gmail.com> References: <20180430140606.4615-80-luca.boccassi@gmail.com> <20180430144223.18657-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/bonding: free mempool used in mode 6' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 14:43:39 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 2d90d0443cad0b8130de3a54ce7466649c119ab6 Mon Sep 17 00:00:00 2001 From: Tonghao Zhang Date: Tue, 10 Apr 2018 21:34:28 -0700 Subject: [PATCH] net/bonding: free mempool used in mode 6 [ upstream commit b9c0dea24beb4b893e88d93c1b52481003ff8999 ] When creating bond device with mode6, dpdk will create mempool for arp packets. If free the bond device and create it with same name, there will be an error. Because the mempool is not freed when destroying bond device. Fixes: 06fe78b98ccd ("bond: add mode 6") Fixes: ea0c20ea95fd ("apps: use helper to create mbuf pools") Signed-off-by: Tonghao Zhang Reviewed-by: Ferruh Yigit --- drivers/net/bonding/rte_eth_bond_pmd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index c0d167fff..f41c56b8b 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b/drivers/net/bonding/rte_eth_bond_pmd.c @@ -3123,6 +3123,10 @@ bond_remove(struct rte_vdev_device *dev) eth_dev->tx_pkt_burst = NULL; internals = eth_dev->data->dev_private; + /* Try to release mempool used in mode6. If the bond + * device is not mode6, free the NULL is not problem. + */ + rte_mempool_free(internals->mode6.mempool); rte_bitmap_free(internals->vlan_filter_bmp); rte_free(internals->vlan_filter_bmpmem); rte_free(eth_dev->data->dev_private); -- 2.14.2