[dpdk-dev] [PATCH 2/3] vhost: Add callback and private data for vhost PMD
Tetsuya Mukawa
mukawa at igel.co.jp
Mon Nov 2 04:15:03 CET 2015
On 2015/10/31 2:49, Loftus, Ciara wrote:
>> These variables are needed to be able to manage one of virtio devices
>> using both vhost library APIs and vhost PMD.
>> For example, if vhost PMD uses current callback handler and private data
>> provided by vhost library, A DPDK application that links vhost library
>> cannot use some of vhost library APIs. To avoid it, callback and private
>> data for vhost PMD are needed.
>>
>> Signed-off-by: Tetsuya Mukawa <mukawa at igel.co.jp>
>> ---
>> lib/librte_vhost/rte_vhost_version.map | 6 +++
>> lib/librte_vhost/rte_virtio_net.h | 3 ++
>> lib/librte_vhost/vhost_user/virtio-net-user.c | 13 +++----
>> lib/librte_vhost/virtio-net.c | 56 +++++++++++++++++++++++++--
>> lib/librte_vhost/virtio-net.h | 4 +-
>> 5 files changed, 70 insertions(+), 12 deletions(-)
>>
> Hi Tetsuya,
>
> Thanks for implementing this. I haven't had a chance to actually test it, but if these changes allow users of the PMD to implement their own new_ and destroy_ device functions etc, that's good news.
>
> Thanks,
> Ciara
Hi Ciara,
Yes, the patch works like you said.
Thanks,
Tetsuya
More information about the dev
mailing list