From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0082.outbound.protection.outlook.com [104.47.2.82]) by dpdk.org (Postfix) with ESMTP id C72473772 for ; Tue, 19 Jul 2016 16:34:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=TogaNetworksLtd.onmicrosoft.com; s=selector1-toganetworks-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=LKNUDfgP7w+HgwyN4PjulzyCIVocCkC8bycPokjEDEk=; b=QMVHeQ0vzuyDx3PGl7o+cqNiVn5WSaoSWZHFnth7hxP4V5DePABK5caFy36h6OVE2mbC7DtCL+85AEhhfryWPyj8KJgQLzjzAbNY+FdIheOZjuDAodSBs1RRPzAAFxb91c2ROC9Zdx27IrOlncjz1izSzrOKv7OvYNz6cOpHfi0= Received: from VI1PR02MB1727.eurprd02.prod.outlook.com (10.166.41.144) by VI1PR02MB1727.eurprd02.prod.outlook.com (10.166.41.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.10; Tue, 19 Jul 2016 14:34:25 +0000 Received: from VI1PR02MB1727.eurprd02.prod.outlook.com ([10.166.41.144]) by VI1PR02MB1727.eurprd02.prod.outlook.com ([10.166.41.144]) with mapi id 15.01.0544.013; Tue, 19 Jul 2016 14:34:25 +0000 From: Eli Britstein To: Declan Doherty , Tetsuya Mukawa , "dev@dpdk.org" CC: "Iremonger, Bernard" Thread-Topic: [dpdk-dev] SRIOV hot unplug Thread-Index: AdHgBokZEAYxOrFcS1eredTEovecxAAZgTVwABioLMAAJjldAAARcAJgAAaCeoAAAKhcQA== Date: Tue, 19 Jul 2016 14:34:25 +0000 Message-ID: References: <8CEF83825BEC744B83065625E567D7C21A04F18C@IRSMSX108.ger.corp.intel.com> <7be321ba-9eb7-2932-ae73-dc7a33b225e6@igel.co.jp> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=eli.britstein@toganetworks.com; x-originating-ip: [84.94.204.35] x-ms-office365-filtering-correlation-id: 7a2441d2-9129-4c05-2baa-08d3afe1c864 x-microsoft-exchange-diagnostics: 1; VI1PR02MB1727; 6:W0P8iTGoUz5Fv7bPVqzw+HvcKpBswJj+f7lwcy5MCjL0lv4McrA9Z9260i5uyh9uvORkQDksu32kIbfBoCzjsD1wFG1NB89d5+42kH2eYqPBXeIHMg8uHPoDWLIDMDMdnxvof3Xdop+2WmD0LUqxeQCnu8EIPhKPc6UX1+IEBVP5q1wnQc7pqYA+EyHAQAPePnkuHt6kAFsjNOGi9I/+zEwlTsc0VViQnTudOtU/bE20mYpPfsECKsOFsvFdsX6TtlLb48KN6dQgtZUj1J89FMxJ6m+zJZk7gTWPy5EzsPWjo6myOczaerCGFYIq8Neh; 5:0QeqetNmg4a9JsCWslfifsX+Rq+oXaOOuFKKyT6xiCG7N/4j6+rNV9eGiDbuMQWos1BKc3YYXgDJ32+nZJG/98m0ZHukmLZ7ocAe11AE0wQYA6NocZQhj/LcMDLkzD2sAuW4TwVfxWMNjGS3fpBfFw==; 24:NLflzC3NrUb7na3Pyf6rQDIcs6izkS1nLNEHNJZDSyg1XV2n3opX07vmsp59JvTzXp+xMw9a/2Cz3s27vfidvnI3g9JgerfhKXjf70Tqby4=; 7:ocWO1sNF6RC9393yhTmatsKVFXPL9ACRvTeZgHW7OEEtwzXItXrsE3n2JMuDeGAqtvbTOcJ+HaN/zd+HmdqLcRhg7QXP7Bx1j+KKD19GYL9ZretHGFOmK+9ogktlNRyPo349Begb0DauOEz2O+YyWs00IiEhEOWXMSt/MrhmqkSyOtWDvljmTgMuj4AYiwRSeq8KNPPQFcY/FLjuFIBBDP121v+KZAoXodJo1o+cATiZw1OucpAIg8stGEnJgUMV x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR02MB1727; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(72170088055959)(228905959029699)(17755550239193); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040130)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041072)(6043046); SRVR:VI1PR02MB1727; BCL:0; PCL:0; RULEID:; SRVR:VI1PR02MB1727; x-forefront-prvs: 000800954F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(34854003)(13464003)(42154003)(24454002)(189002)(377454003)(199003)(5002640100001)(97736004)(4326007)(5001770100001)(15395725005)(92566002)(15975445007)(68736007)(3280700002)(2906002)(77096005)(2900100001)(93886004)(586003)(9686002)(76576001)(6116002)(10400500002)(2950100001)(102836003)(74316002)(81166006)(3660700001)(11100500001)(5890100001)(87936001)(7846002)(8676002)(7696003)(86362001)(66066001)(5003600100003)(101416001)(105586002)(2501003)(345774005)(81156014)(8936002)(7736002)(106356001)(189998001)(122556002)(33656002)(3846002)(54356999)(76176999)(19580405001)(305945005)(50986999)(19580395003)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR02MB1727; H:VI1PR02MB1727.eurprd02.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: toganetworks.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: toganetworks.com X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jul 2016 14:34:25.1930 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 73f7e7df-ca98-4f08-bf85-f137b447da96 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR02MB1727 Subject: Re: [dpdk-dev] SRIOV hot unplug X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2016 14:34:28 -0000 > -----Original Message----- > From: Declan Doherty [mailto:declan.doherty@intel.com] > Sent: Tuesday, 19 July, 2016 5:15 PM > To: Eli Britstein; Tetsuya Mukawa; dev@dpdk.org > Cc: Iremonger, Bernard > Subject: Re: [dpdk-dev] SRIOV hot unplug > > On 07/19/2016 12:18 PM, Eli Britstein wrote: > > > > > >> -----Original Message----- > >> From: Tetsuya Mukawa [mailto:mukawa@igel.co.jp] > >> Sent: Tuesday, 19 July, 2016 5:49 AM > >> To: Eli Britstein; dev@dpdk.org > >> Cc: Iremonger, Bernard > >> Subject: Re: [dpdk-dev] SRIOV hot unplug > >> > >> Hi Eli, > >> > >> On 2016/07/18 17:47, Eli Britstein wrote: > >>> Hi Bernard, > >>> > >>> Thank you for your answer. > >>> However, to do this, I have to have some communication protocol to > >>> the > >> VM's application in order for it to do this sequence and acknowledge > >> that it is now safe to proceed with detaching the device. > >>> This implies some kind of integration from the host side, which I > >>> would like > >> to avoid. > >> > >> I guess you should have some kind of communication channel to notice > >> the hotpluging events from host to VM. > > [Eli Britstein] > > In order just to notice the hotplugging events inside the VM, I can > > use add some udev action in the VM, in /etc/udev/rules.d/XXX However, > those are asynchronous events. The host proceeds with unplugging without > waiting for the VM to acknowledge it. > > > >> > >>> Do you think might there be any other way for the application to > >>> handle > >> such event in a smooth way? > >> > >> So far, I guess having one more virtio-net device will be easiest way. > > [Eli Britstein] > > Could you please elaborate your meaning? How do you mean to use this > extra virtio-net device? > > > > To clarify: I would like to have my bond device automatically set the v= NIC as > its primary, and close/remove the VF before it is unplugged. > > > > Thanks, > > Eli > > The only that I can think of which would allow bonding to support this is= if you > could force a link down notification to the VF. The bonding driver should > automatically then fail over to the vNIC, but again this is asynchronous = event > so I'm not sure how you could confirm this action from the host other tha= n by > monitoring traffic? [Eli Britstein] How can I force link down notification to the VF? > > Also I don't know if the DPDK environment has been tested to support the > removal of dynamic hot-plugging you are suggesting via the udev action. > There are no hooks that I'm aware of which would detect that the PCI devi= ce > is no longer available and then clean the resources away in DPDK. > > > > > > > > Also could you please drop the footer/disclaimer on replies to the > mailing list (see http://dpdk.org/ml) ---------------------------------------------------------------------------= ---------------------------------------------------------------------- This email and any files transmitted and/or attachments with it are confide= ntial and proprietary information of Toga Networks Ltd., and intended solely for the use of the individual or en= tity to whom they are addressed. If you have received this email in error please notify the system manager. = This message contains confidential information of Toga Networks Ltd., and is intended only for the individual = named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Pleas= e notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mai= l from your system. If you are not the intended recipient you are notified that disclosing, copying, distribut= ing or taking any action in reliance on the contents of this information is strictly prohibited. ---------------------------------------------------------------------------= ---------------------------------------------------------------------