From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 470E01B556 for ; Tue, 26 Jun 2018 13:58:47 +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 fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2018 04:58:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,274,1526367600"; d="scan'208";a="67370465" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.237.220.28]) ([10.237.220.28]) by fmsmga001.fm.intel.com with ESMTP; 26 Jun 2018 04:58:44 -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> <20180626070832.3055-1-qi.z.zhang@intel.com> <20180626070832.3055-25-qi.z.zhang@intel.com> From: "Burakov, Anatoly" Message-ID: <7f4dc059-091f-9c8e-a526-e5da88fa38d1@intel.com> Date: Tue, 26 Jun 2018 12:58:43 +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: <20180626070832.3055-25-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 v4 24/24] examples/multi_process: add hotplug 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: Tue, 26 Jun 2018 11:58:47 -0000 On 26-Jun-18 8:08 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? > ./hotplug_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 > --- LGTM Acked-by: Anatoly Burakov -- Thanks, Anatoly