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 B34471BB75 for ; Fri, 13 Apr 2018 16:39:54 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Apr 2018 07:39:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,445,1517904000"; d="scan'208";a="50542450" Received: from tanjianf-mobl.ccr.corp.intel.com (HELO [10.255.29.166]) ([10.255.29.166]) by orsmga002.jf.intel.com with ESMTP; 13 Apr 2018 07:39:52 -0700 To: Thomas Monjalon References: <1522950303-17206-1-git-send-email-jianfeng.tan@intel.com> <1561788.jEzySPKPAF@xps> Cc: dev@dpdk.org From: "Tan, Jianfeng" Message-ID: <8c9182e9-6ab6-125b-5390-e2b4f04da95b@intel.com> Date: Fri, 13 Apr 2018 22:39:51 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1561788.jEzySPKPAF@xps> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2 0/5] allow procinfo and pdump on eth vdev 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: Fri, 13 Apr 2018 14:39:55 -0000 Hi Thomas, On 4/13/2018 7:30 AM, Thomas Monjalon wrote: > Hi Jinafeng, > > 05/04/2018 19:44, Jianfeng Tan: >> As we know, we have below limitations in vdev: >> - dpdk-procinfo cannot get the stats of (most) vdev in primary process; >> - dpdk-pdump cannot dump the packets for (most) vdev in primary proces; >> - secondary process cannot use (most) vdev in primary process. >> >> The very first reason is that the secondary process actually does not know >> the existence of those vdevs as vdevs are chained on a linked list, and >> not shareable to secondary. >> >> In this patch series, we would like to propose a vdev sharing model like this: >> - As a secondary process boots, all devices (including vdev) in primary >> will be automatically shared. After both primary and secondary process >> booted, >> - Device add/remove in primary will be translated to device hog plug/unplug >> event in secondary processes. (TODO) >> - Device add in secondary >> * If that kind of device support multi-process, the secondary will >> request the primary to probe the device and the primary to share >> it to the secondary. It's not necessary to have secondary-private >> device in this case. (TODO) >> * If that kind of device does not support multi-process, the secondary >> will probe the device by itself, and the port id is shared among >> all primary/secondary processes. > Are you OK to consider this series for DPDK 18.08? > As you may know, we've started working on this functionality since v17.11. To make it work, we split it into several parts: (1) move vdev into drivers/bus, merged v17.11; (2) DPDK IPC, merged in v18.02; (3) the secondary support for vdev (without datapath). As it's an important feature asked several times by our users, I would suggest we target this release. In the mean time, I will ask the community's help to review and test. Thanks, Jianfeng