From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DF117A00E6 for ; Mon, 5 Aug 2019 19:28:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7C3091BD66; Mon, 5 Aug 2019 19:28:59 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 3C3B61BD66 for ; Mon, 5 Aug 2019 19:28:58 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x75HPpfr016862 for ; Mon, 5 Aug 2019 10:28:57 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=uAgzp0RJCFnlCUXsqagmeKVml3FoptKuOW66hNXUNWg=; b=MzpvPZKAsiP05uNvriIDaaf+moIWVfbXGU8QXDv9xh/zWuYaSROkMvci4G8KwL3vvH1K JllW1wv/3ofEHum2NqOPQUszq+DtIznqH3k698aehwcmAwy8/Lqq6DKBm80OtS7hk8mG NxFTHMILA8bNf6keRU62g3c1fUqHiPJ/rgMgtpn6gZ2Bg3F6rqMMd7SL/YT92Qv6R187 ixBkykKgMcVvPBqlxIVx2AgwDZicD/ab9CgLCDmObpkdA7AWO6QIyyFBN8EqASbghp0g 4+2cc3qo1zLd5hnxF1N6si+EjdN9fbPfBv6/wNeXB0ieOEYx2KNEMBLNGSnah5ngqb75 nA== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2u57mqyv1b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 05 Aug 2019 10:28:57 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 5 Aug 2019 10:28:56 -0700 Received: from NAM04-BN3-obe.outbound.protection.outlook.com (104.47.46.57) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 5 Aug 2019 10:28:56 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NjOkcJddFQPBSIagVfg7gC8HWqI4sOK7q0tR/69OgFXfHFAeDJnODQPUR4Qr7+sHBKsuKKokVfFuwobz0rgg6/DsxYqwEKAN2OUpXANLN6FhSzHVCYI5n0ox+f+CsWLM7yvwd3NUtt0506HDs0pG3QcO5Cwv8RZixnQVSbQw0yEYSAsHO+i3tuZh3OVu6Cuae0MDjenrXtRieD4/LXSFBi45Hz/rQ3hw6KljCC7+wbjO0tuB9Kk8zVerh3bYKu9k+eq0r1ql7fUjfXTYU/lGi/GacobxirmARRTyUOulCTRLkaaWi8iOhw9RCPUcBXs6KiDAOSMjWDTi/XB9ojstDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uAgzp0RJCFnlCUXsqagmeKVml3FoptKuOW66hNXUNWg=; b=f54KBlUGeWHfAZEtvmaFSsIu7Y5igGcPbrbp2M4GemYP6tOcNnGuSQ5MB7abqz4wmPSjDCZgNzs4+PqarYQm7uKtL2quK0cDverIEZmdIbZMrUel3zwbwVaQjbbfOLHJliJN14Tl5Cqm9aWr5o++xbM4jGdtEDb/EtZlwjcc8zPJgvsULFb3ucevdcjCf7Ve1BJC6QTAmUdDBq0s2PnMzc+PtfoPCv3PlbTPIQ94p/Dw1De3pLgHxCMNp6bNjKStWRipXmEQdNfw6gZRRzoluIz/DIKSDBoWy6C4fBNuOpf+FXA/gFs+OK8n/Ku5CLTQXuQUnHYf4bbZJ7Q44rb7qg== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=marvell.com;dmarc=pass action=none header.from=marvell.com;dkim=pass header.d=marvell.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uAgzp0RJCFnlCUXsqagmeKVml3FoptKuOW66hNXUNWg=; b=eBhAYOFLcxGzAejoQ7fKLbmPo2INizX8dsG53HKJ05UPeU/00CHzrwCN/twojZmG2kOlfegb8mqf096HWwZySQmY9tMTM7iTnV8IURonaxlsp0joc1yOdNzHAxhs1OlwEvaMOoAdwTzYGwCrLAoRVbDjZfe/GHUvDDBeMnoBnhk= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2710.namprd18.prod.outlook.com (20.179.56.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2136.13; Mon, 5 Aug 2019 17:28:51 +0000 Received: from BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::5877:72b7:40cf:2013]) by BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::5877:72b7:40cf:2013%3]) with mapi id 15.20.2136.018; Mon, 5 Aug 2019 17:28:51 +0000 From: Jerin Jacob Kollanukkaran To: Liron Himi CC: "dev@dpdk.org" , Liron Himi Thread-Topic: [PATCH] net/mvpp2: remove resources when port is closed Thread-Index: AQHVS2RII4wfuwhdIEGor3+5dIRurabsz5Xw Date: Mon, 5 Aug 2019 17:28:51 +0000 Message-ID: References: <1565000216-9465-1-git-send-email-lironh@marvell.com> In-Reply-To: <1565000216-9465-1-git-send-email-lironh@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [171.61.87.186] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c28ddb8c-4e53-4a99-46c8-08d719ca6223 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BYAPR18MB2710; x-ms-traffictypediagnostic: BYAPR18MB2710: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 01208B1E18 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(136003)(39860400002)(366004)(396003)(376002)(13464003)(189003)(199004)(316002)(53546011)(6506007)(446003)(99286004)(25786009)(5660300002)(486006)(2906002)(4744005)(229853002)(54906003)(68736007)(4326008)(7696005)(26005)(86362001)(6862004)(3846002)(186003)(6246003)(107886003)(6116002)(6636002)(76176011)(102836004)(14454004)(33656002)(14444005)(9686003)(8936002)(55016002)(53936002)(71200400001)(71190400001)(305945005)(11346002)(81156014)(478600001)(8676002)(81166006)(6436002)(74316002)(476003)(256004)(7736002)(66446008)(64756008)(66946007)(52536014)(76116006)(66066001)(66476007)(66556008); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2710; H:BYAPR18MB2424.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: kZvVd++LDNtO2H0MIfK3UolvkvOICGWam7jQhWnK9NeA9N6J4CXq+2+k4vxyvLqnHEbbghOPWgWuwwCYbZ374uyKQC9P+ZATXccYGPeCcbi2f6A5Yx9dkEzigqRyusrLutd8yIykGpyythbKpqtKsvYUkRiXpvEqpfWZaUK19IlRrQaMz2rX6cuiy4+rw3kqXSM9InaL8l9Xi3D/8Q+IyqFFw1koZhiakTNe1n3enonqqONspfGzYt36c8ovoW9p7qGya1Z6PrgjXmNsn1k24UdtP6JJlnDef6tFLVt+ZYZxNmq/d7sH+O+Poo40dp9WdHifMyIWBqfOREDIfCVG8wqPlzZiU9UdIfkMI92QfsnpS8mfrjowBEDOSJwigTBwMvAtufEhv7+f0OruDg3jv/AF/wKNYjAZ2EDNn1vPLD8= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: c28ddb8c-4e53-4a99-46c8-08d719ca6223 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Aug 2019 17:28:51.4453 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jerinj@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB2710 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-08-05_08:2019-07-31,2019-08-05 signatures=0 Subject: Re: [dpdk-dev] [PATCH] net/mvpp2: 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: lironh@marvell.com > Sent: Monday, August 5, 2019 3:47 PM > To: Jerin Jacob Kollanukkaran > Cc: dev@dpdk.org; Liron Himi > Subject: [PATCH] net/mvpp2: remove resources when port is closed >=20 > From: Liron Himi >=20 > Since 18.11, it is suggested that driver should release all its private r= esources > at the dev_close routine. So all resources previously released in remove > routine are now released at the dev_close routine, and the dev_close > routine will be called in driver remove routine in order to support remov= ing a > device without closing its ports. >=20 > Above behavior changes are supported by setting > RTE_ETH_DEV_CLOSE_REMOVE flag during probe stage. >=20 > Signed-off-by: Liron Himi > Reviewed-by: Yuri Chipchev Applied to dpdk-next-net-mrvl/master. Thanks