From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by dpdk.org (Postfix) with ESMTP id 17E1E37B4 for ; Sat, 30 Sep 2017 10:25:33 +0200 (CEST) Received: by mail-pf0-f178.google.com with SMTP id l188so864240pfc.6 for ; Sat, 30 Sep 2017 01:25:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=C+leFH7WzAVf3Co14e86qpYkvCVk5+SZPcWj9qL7wfM=; b=l92oq0FJsRQep5IKLb+LFoqz6UNtJuG9bcmsXg48E2ervztmb4FBIdWzpuwgo+H3hr LdiTuN9WEU6uFTP4lVv65SYTRVeUQmWFMWTxhFad6qQg/2gBIsRzVreVLSTa5lXLdQjw Ap2o035BAzOeaxv3cne5mSxrOMzZLlb9inlwEa1wB7i9TRFZ6pHxfdqNiTQrDpeLEahr Dbw9ndNe9vGkqzRqFZrzIKUe6rAnTTMBtRXGtgVj7U199voJkCCXNusBHm0boJ9mxkXl /mWSYj9fh/cQWGchPNTyg3jx7xdEeOXloKz5SON1uWedVVql1fUVEHyDImSPDAV8NIPz CNVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=C+leFH7WzAVf3Co14e86qpYkvCVk5+SZPcWj9qL7wfM=; b=qnXCffL19hXG6EozNcyL6M4V8jP6PrY9BpljG7ls+TCie2Ij4jinorDHBM7fBb8xhE LrtoL9YkDX+oj7FvPUYWV8M5aigpVbaFdz4oxOUamdFOFpeD2TjjfG5a/O9nle0whJIM WVDP2+NhaBQvm0WbAzw44nxaUvsGWjNVO5J5qh5f7e6p7t7ANSjMnYQ8YPfRqOMfntVW 6iR1ybiBoUl7t41qUnyvKPjGWNmydb0+lZeXDGqMg1muSvZSJs/z/8AdTZKeNH8ufzcY oZMqHn0rK4LV7dYZZHZUGTWmbzVyuI1Vc1gMehnBU2n6vJqODcNzai9+tnxwqmsaG1wK QIqg== X-Gm-Message-State: AMCzsaU7Te5U/4D4foupqh6edQn2v+quoIFSUbv3wXZGJsIs7NFFf8Pc lmgeSTE2HWtzckvjjCLE7DeUaQ== X-Google-Smtp-Source: AOwi7QADYwVZzQVGrjKyq2RnDfS0pcRCov/TH1uresA4sFvhwYKxWH08KPz2FS1HpDjz62gLAto1xQ== X-Received: by 10.98.150.201 with SMTP id s70mr649149pfk.13.1506759932997; Sat, 30 Sep 2017 01:25:32 -0700 (PDT) Received: from yliu-home ([222.64.175.152]) by smtp.gmail.com with ESMTPSA id i188sm8491835pgc.63.2017.09.30.01.25.31 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Sep 2017 01:25:31 -0700 (PDT) Date: Sat, 30 Sep 2017 16:23:19 +0800 From: Yuanhan Liu To: Jianfeng Tan Cc: dev@dpdk.org, bruce.richardson@intel.com, konstantin.ananyev@intel.com, pablo.de.lara.guarch@intel.com, thomas@monjalon.net, maxime.coquelin@redhat.com, mtetsuyah@gmail.com, ferruh.yigit@intel.com Message-ID: <20170930082319.GD6251@yliu-home> References: <1503654052-84730-1-git-send-email-jianfeng.tan@intel.com> <1506606959-76230-1-git-send-email-jianfeng.tan@intel.com> <1506606959-76230-13-git-send-email-jianfeng.tan@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1506606959-76230-13-git-send-email-jianfeng.tan@intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [dpdk-dev] [PATCH v2 12/12] net/vhost: support to run in the secondary process 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: Sat, 30 Sep 2017 08:25:34 -0000 On Thu, Sep 28, 2017 at 01:55:59PM +0000, Jianfeng Tan wrote: > +static int > new_device(int vid) > { > struct rte_eth_dev *eth_dev; > @@ -610,6 +685,8 @@ new_device(int vid) > _rte_eth_dev_callback_process(eth_dev, RTE_ETH_EVENT_INTR_LSC, > NULL, NULL); > > + share_device(vid); > + Another question is, have you considered/tested the case when the VM changes the qeueue number later? --yliu