From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 81FE637B4 for ; Thu, 29 Sep 2016 11:30:45 +0200 (CEST) Received: by mail-wm0-f52.google.com with SMTP id w84so285191583wmg.1 for ; Thu, 29 Sep 2016 02:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=E4O8LUyTDaWbXbVOLbpwTuL+tO3D4Zv1H1llUVESkUc=; b=cGy8VvznnYUnMmFasVv4LwqSIIOlYOowycVedhuNfOkUtRaJcW+9RThzFhu7U4AgdE Lj94oJvXpRMS79spOOIGWjdIpWuOvtigHs5XGQ8pQKoFjny4DiF/HOOVa+wBlIAteQc0 ApkB6PCUrGPbkj0Y8zhX/Qlm2KbeYncIX6CBXclxjuGoCPUQ9hCMMPmYol3SL4oSYuha YzGdIcZbCt4XNUeSP12wStaIosAQ2FopB5cYuKiBJ9nscBnfa4ZIFAFvuOKLQu3CTQa5 0CwaMqqPJXoluGLwAjI1b5hhIHhmalynQ6WBqyvAqObtTOVeschetP6ZDBzwpP+gFkOY t3Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=E4O8LUyTDaWbXbVOLbpwTuL+tO3D4Zv1H1llUVESkUc=; b=JbcEyfmP7EFRTmLyXpM46CorPzaTJF+vG+oMwDJ4V6JuHd1ClPe9ASuQ2O+iI9ZqDa +OEZqHFqT9JIVkj9whKYDmHJIGI0+CcABZQi2fqLyKErkdWyv+8c3LFnASPZ+q8U5xfh Yn8iRi/5h26R56Or2/lVxotx4f7CJ2C1rnu9x4bCkHs7BO50taVerY+1B5e8ocPJiRg4 kGizcapC3KXImy3MLTAq/z4luLY7tLuP1hSFmJnF3BZY6SoO5luI6U7UlWWX+cfS9gMo jDhm+Mdeb6YFb7bJEaapGs3Yod2J6HSzsKDsyi7tRTQC8ojiMb6nsCeenkeGqx1W8TDl Xyvw== X-Gm-Message-State: AA6/9RnTWFzMVi+MbF/LI7g3LOT6zkHScnqkuYHzEB9nPNxe8bKO+xmniFJew9mSUkrxn5qa X-Received: by 10.194.5.230 with SMTP id v6mr605174wjv.92.1475141445229; Thu, 29 Sep 2016 02:30:45 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id 188sm27162059wmo.1.2016.09.29.02.30.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Sep 2016 02:30:44 -0700 (PDT) From: Thomas Monjalon To: "Mcnamara, John" , "Loftus, Ciara" , "Liu, Yuanhan" Cc: dev@dpdk.org Date: Thu, 29 Sep 2016 11:30:43 +0200 Message-ID: <2712023.9XEuyBWnhG@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <1473774463-26966-1-git-send-email-ciara.loftus@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] net/vhost: Add function to retreive the 'vid' for a given port id. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2016 09:30:45 -0000 2016-09-29 09:21, Mcnamara, John: > > In some cases when using the vHost PMD, certain vHost library functions > > may still need to be accessed. One such example is the > > rte_vhost_get_queue_num function which returns the number of virtqueues > > reported by the guest - information which is not exposed by the PMD. > > > > This commit introduces a new rte_eth_vhost function that returns the 'vid' > > associated with a given port id. This allows the PMD user to call vHost > > library functions which require the 'vid' value. > > > > Signed-off-by: Ciara Loftus > > Acked-by: John McNamara A conclusion to this long thread: This patch can be helpful in many situations where we need vhost lib when using vhost PMD. And driver-specific API is acceptable. And this specific function is not a candidate to be promoted in ethdev. So it should go in release 16.11. When overlooking the OVS issue related, this solution seems to be a workaround. For next release, would it be possible to find a real fix for vhost PMD and/or ethdev API instead of relying on vhost lib?