[dpdk-dev] [PATCH v5 3/3] vhost: Add helper function to convert port id to virtio device pointer
Yuanhan Liu
yuanhan.liu at linux.intel.com
Fri Dec 18 05:19:50 CET 2015
On Fri, Dec 18, 2015 at 12:15:49PM +0900, Tetsuya Mukawa wrote:
> 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.
Sorry, a "guess" could not convice me to have it.
On the other hand, it does no harm but brings great benefit to make
things simple in the first time. __If__ there really is a need for
them, we could add it back, isn't it? ;)
--yliu
> 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
>
More information about the dev
mailing list