From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH v12 06/19] eal: support attach or detach share device from secondary Date: Wed, 11 Jul 2018 14:59:53 +0100 Message-ID: <71e00e7a-4394-90b2-3d8e-f4490be4cdb1@intel.com> References: <20180607123849.14439-1-qi.z.zhang@intel.com> <20180711134808.254054-1-qi.z.zhang@intel.com> <20180711134808.254054-7-qi.z.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: konstantin.ananyev@intel.com, dev@dpdk.org, bruce.richardson@intel.com, ferruh.yigit@intel.com, benjamin.h.shelton@intel.com, narender.vangati@intel.com To: Qi Zhang , thomas@monjalon.net Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id A48091B4FD for ; Wed, 11 Jul 2018 15:59:56 +0200 (CEST) In-Reply-To: <20180711134808.254054-7-qi.z.zhang@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 11-Jul-18 2:47 PM, Qi Zhang wrote: > This patch cover the multi-process hotplug case when a device > attach/detach request be issued from a secondary process > > device attach on secondary: > a) secondary send sync request to the primary. > b) primary receive the request and attach the new device if > failed goto i). > c) primary forward attach sync request to all secondary. > d) secondary receive the request and attach the device and send a reply. > e) primary check the reply if all success goes to j). > f) primary send attach rollback sync request to all secondary. > g) secondary receive the request and detach the device and send a reply. > h) primary receive the reply and detach device as rollback action. > i) send attach fail to secondary as a reply of step a), goto k). > j) send attach success to secondary as a reply of step a). > k) secondary receive reply and return. > > device detach on secondary: > a) secondary send sync request to the primary. > b) primary send detach sync request to all secondary. > c) secondary detach the device and send a reply. > d) primary check the reply if all success goes to g). > e) primary send detach rollback sync request to all secondary. > f) secondary receive the request and attach back device. goto h). > g) primary detach the device if success goto i), else goto e). > h) primary send detach fail to secondary as a reply of step a), goto j). > i) primary send detach success to secondary as a reply of step a). > j) secondary receive reply and return. > > Signed-off-by: Qi Zhang > --- Reviewed-by: Anatoly Burakov -- Thanks, Anatoly