From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 6542B1BB2A for ; Thu, 21 Jun 2018 09:54:09 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jun 2018 00:54:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,251,1526367600"; d="scan'208";a="65994791" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.252.4.182]) ([10.252.4.182]) by fmsmga001.fm.intel.com with ESMTP; 21 Jun 2018 00:54:06 -0700 To: Qi Zhang , thomas@monjalon.net 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 References: <20180607123849.14439-1-qi.z.zhang@intel.com> <20180621020059.1198-1-qi.z.zhang@intel.com> <20180621020059.1198-23-qi.z.zhang@intel.com> From: "Burakov, Anatoly" Message-ID: Date: Thu, 21 Jun 2018 08:54:05 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180621020059.1198-23-qi.z.zhang@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2 22/22] examples/devmgm_mp: add simple device management sample 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: , X-List-Received-Date: Thu, 21 Jun 2018 07:54:09 -0000 On 21-Jun-18 3:00 AM, Qi Zhang wrote: > The sample code demonstrate device (ethdev only) management > at multi-process envrionment. User can attach/detach a device > on primary process and see it is synced on secondary process > automatically, also user can lock a device to prevent it be > detached or unlock it to go back to default behaviour. > > How to start? > ./devmgm_mp --proc-type=auto > > Command Line Example: > >> help >> list > > /* attach a af_packet vdev */ >> attach net_af_packet,iface=eth0 > > /* detach port 0 */ >> detach 0 > > /* attach a private af_packet vdev (secondary process only)*/ >> attachp net_af_packet,iface=eth0 > > /* detach a private device (secondary process only) */ >> detachp 0 > > /* lock port 0 */ >> lock 0 > > /* unlock port 0 */ >> unlock 0 > > Signed-off-by: Qi Zhang > --- Hi Qi, I believe you've missed my comments for v1 of this patch. -- Thanks, Anatoly