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 B2351A045E for ; Fri, 31 May 2019 16:14:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3F5351B954; Fri, 31 May 2019 16:14:19 +0200 (CEST) Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by dpdk.org (Postfix) with ESMTP id 51DCD1B952 for ; Fri, 31 May 2019 16:14:17 +0200 (CEST) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id x4VEDtLw003200 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Fri, 31 May 2019 07:14:06 -0700 Received: from ALA-MBD.corp.ad.wrs.com ([169.254.3.163]) by ALA-HCB.corp.ad.wrs.com ([147.11.189.41]) with mapi id 14.03.0439.000; Fri, 31 May 2019 07:13:45 -0700 From: "Peters, Matt" To: "dev@dpdk.org" Thread-Topic: [PATCH v2] net/avp: remove resources when port is closed Thread-Index: AQHVFK4LV6hOGKtNJ0Wef12SfGsfhqaFTJJg Date: Fri, 31 May 2019 14:13:45 +0000 Message-ID: References: <20190527170255.30853-1-allain.legacy@windriver.com> In-Reply-To: <20190527170255.30853-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 v2] 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: Monday, May 27, 2019 1:03 PM > To: thomas@monjalon.net > Cc: dev@dpdk.org; ferruh.yigit@intel.com; Peters, Matt > Subject: [PATCH v2] 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