From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by dpdk.org (Postfix) with ESMTP id 1EB2A8DAC for ; Fri, 18 Dec 2015 04:15:52 +0100 (CET) Received: by mail-pa0-f51.google.com with SMTP id ur14so52706631pab.0 for ; Thu, 17 Dec 2015 19:15:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igel-co-jp.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=dXvGZFiZ6kk3rKEwCRUaNdSyZfNEI31to89kz3h0AJs=; b=Ne6dYV0pGQ6YYiZy7AkcvpM77yQWEXO2Tezf/WdIaObCSTtKYM9kWV6cu2oPvAzlHl EGi3R5yP/2L1233e+4yK389G2TLYAurh0Ve/5jjuFrlIZJTFIdZcUmjkuWAuDWH+Uf/3 P9k+YWM/51i1hpzf7fDY6Ei/Imfw2nMwTxXtvZU+LJoJmB1DzF7o8xSPjToj2HRAfjmn AFJbz4jEYI0gLVodsloj4+8VzBKtr/EYieE2bs8dGX6rxt5RY9Qp7xujvjq4c2ccEjwW gtfjrxKuYo0x+RM5RAqoqpCkCefRrIkt6NkWpwyJq8Jpg8FzTGCJWXCmOrVH4/6XZIGF CDTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=dXvGZFiZ6kk3rKEwCRUaNdSyZfNEI31to89kz3h0AJs=; b=aYAm/f3KS7meE1/2Dek96I2BI3tvoOn71IW9JAXF++ylQ2b1Ll+mp8ZnNoZpZ5GHWQ OODyw7Ka51c1HqBlGJIlZT+xbp3svmXh0Z2MELtACNI0r4+AkQCk5MDJAbyB1FskEpE8 HQSUfCwajrctdN41wVb+mbZ+zOp1iqqKSqXuItd+cGY7sgRsiKtffroHb7QD5YNurOQs P6XqdyPxeeeYCpPu+LbXgyClASz31qT8EJRYc91sv5clnGLd7L28PeU0Rq5ND70qzfrw eLoN8giMcEqJj36q+98qFCBj1Ps3aptLHAVA/9yxCSPUIu2zI6P8URi1rsI/dWXMcRq+ STQQ== X-Gm-Message-State: ALoCoQnUZViC5p8z6rlBpiKeJ/RtiN49pNc2yL8sXcpcokmBxwUK3XI8MBNH1hA8n7wD3eQnh0TG501h+lZ0hVKCvhCylXVVxg== X-Received: by 10.66.117.199 with SMTP id kg7mr1771176pab.105.1450408551581; Thu, 17 Dec 2015 19:15:51 -0800 (PST) Received: from [10.16.129.101] (napt.igel.co.jp. [219.106.231.132]) by smtp.googlemail.com with ESMTPSA id v65sm316497pfa.93.2015.12.17.19.15.49 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 Dec 2015 19:15:51 -0800 (PST) To: Yuanhan Liu , "Xie, Huawei" References: <1447392031-24970-3-git-send-email-mukawa@igel.co.jp> <1448355603-21275-1-git-send-email-mukawa@igel.co.jp> <1448355603-21275-4-git-send-email-mukawa@igel.co.jp> <20151217114750.GD29571@yliu-dev.sh.intel.com> From: Tetsuya Mukawa X-Enigmail-Draft-Status: N1110 Message-ID: <56737A65.9060603@igel.co.jp> Date: Fri, 18 Dec 2015 12:15:49 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151217114750.GD29571@yliu-dev.sh.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, ann.zhuangyanying@huawei.com Subject: Re: [dpdk-dev] [PATCH v5 3/3] vhost: Add helper function to convert port id to virtio device pointer 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: Fri, 18 Dec 2015 03:15:52 -0000 On 2015/12/17 20:47, Yuanhan Liu wrote: > On Tue, Nov 24, 2015 at 06:00:03PM +0900, Tetsuya Mukawa wrote: >> This helper function is used to convert port id to virtio device >> pointer. To use this function, a port should be managed by vhost PMD. >> After getting virtio device pointer, it can be used for calling vhost >> library APIs. > I'm thinking why is that necessary. I mean, hey, can we simply treat > it as a normal pmd driver, and don't consider any vhost lib functions > any more while using vhost pmd? I guess vhost PMD cannot hide some of vhost features. Because of this, we may need to add ethdev APIs to wraps these features. I described more in one more email. Could you please see it also? Thanks, Tetsuya