From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id CCEC6A0471 for ; Wed, 19 Jun 2019 13:33:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8E6A81C2D5; Wed, 19 Jun 2019 13:33:25 +0200 (CEST) Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by dpdk.org (Postfix) with ESMTP id 03B4737A2 for ; Wed, 19 Jun 2019 13:33:23 +0200 (CEST) Received: from ALA-HCB.corp.ad.wrs.com ([147.11.189.41]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id x5JBXLtb027415 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 19 Jun 2019 04:33:22 -0700 (PDT) Received: from ALA-MBD.corp.ad.wrs.com ([169.254.3.194]) by ALA-HCB.corp.ad.wrs.com ([147.11.189.41]) with mapi id 14.03.0439.000; Wed, 19 Jun 2019 04:33:02 -0700 From: "Peters, Matt" To: "Legacy, Allain" , "thomas@monjalon.net" CC: "dev@dpdk.org" , "ferruh.yigit@intel.com" Thread-Topic: [PATCH v3] net/avp: remove resources when port is closed Thread-Index: AQHVJgqyjSQ5ST5zp0C3FytWh4dRgKai2TVg Date: Wed, 19 Jun 2019 11:33:02 +0000 Message-ID: References: <20190618191859.13266-1-allain.legacy@windriver.com> In-Reply-To: <20190618191859.13266-1-allain.legacy@windriver.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [128.224.140.195] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3] net/avp: remove resources when port is closed 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" > -----Original Message----- > From: Legacy, Allain > Sent: Tuesday, June 18, 2019 3:19 PM > To: thomas@monjalon.net > Cc: dev@dpdk.org; ferruh.yigit@intel.com; Peters, Matt > Subject: [PATCH v3] net/avp: remove resources when port is closed >=20 > The rte_eth_dev_close() function now handles freeing resources for > devices (e.g., mac_addrs). To conform with the new close() behaviour we > are asserting the RTE_ETH_DEV_CLOSE_REMOVE flag so that > rte_eth_dev_close() releases all device level dynamic memory. >=20 > Second level memory allocated to each individual rx/tx queue is now > freed as part of the close() operation therefore making it safe for the > rte_eth_dev_close() function to free the device private data without > orphaning the rx/tx queue pointers. >=20 > Cc: Matt Peters > Signed-off-by: Allain Legacy Acked-by: Matt Peters