[ovs-dev] [PATCH 1/1] netdev-dpdk-vhost / add dpdk vhost ports

Pravin Shelar pshelar at nicira.com
Tue Jun 3 19:02:37 UTC 2014


On Tue, Jun 3, 2014 at 3:20 AM, maryam.tahhan <maryam.tahhan at intel.com> wrote:
> This patch implements the vhost-net offload API.  It adds support for
> a new port type to userspace datapath called dpdkvhost. This allows KVM
> (QEMU) to offload the servicing of virtio-net devices to it's associated
> dpdkvhost port. Instructions for use are in INSTALL.DPDK.
>
> This has been tested on Intel multi-core platforms and with clients that
> have virtio-net interfaces.
>

Thanks for the patch.
I have not done with reviewing this patch, but have a high level
comment. I see some common code in netdev-dpdk and netdev-dpdk-vhost,
Is it possible to reuse that code?
something like Gerald did for dpdk rings patch.



> Signed-off-by: maryam.tahhan <maryam.tahhan at intel.com>
> ---
>  INSTALL.DPDK                          |  190 +++++
>  Makefile.am                           |   44 +-
>  configure.ac                          |    1 +
>  lib/automake.mk                       |    9 +-
>  lib/netdev-bsd.c                      |    1 -
>  lib/netdev-dpdk-vhost.c               | 1219 +++++++++++++++++++++++++++++++++
>  lib/netdev-dpdk-vhost.h               |   62 ++
>  lib/netdev-dpdk.c                     |   62 +-
>  lib/netdev-dpdk.h                     |   13 +
>  lib/netdev.c                          |    5 +-
>  lib/vhost-net-cdev.c                  |  374 ++++++++++
>  lib/vhost-net-cdev.h                  |   81 +++
>  lib/virtio-net.c                      |  989 ++++++++++++++++++++++++++
>  lib/virtio-net.h                      |  117 ++++
>  utilities/automake.mk                 |    3 +-
>  utilities/eventfd_link/Makefile.in    |   86 +++
>  utilities/eventfd_link/eventfd_link.c |  189 +++++
>  utilities/eventfd_link/eventfd_link.h |   79 +++
>  utilities/qemu-wrap.py                |  389 +++++++++++
>  19 files changed, 3858 insertions(+), 55 deletions(-)
>  create mode 100644 lib/netdev-dpdk-vhost.c
>  create mode 100644 lib/netdev-dpdk-vhost.h
>  create mode 100644 lib/vhost-net-cdev.c
>  create mode 100644 lib/vhost-net-cdev.h
>  create mode 100644 lib/virtio-net.c
>  create mode 100644 lib/virtio-net.h
>  create mode 100644 utilities/eventfd_link/Makefile.in
>  create mode 100644 utilities/eventfd_link/eventfd_link.c
>  create mode 100644 utilities/eventfd_link/eventfd_link.h
>  create mode 100755 utilities/qemu-wrap.py
>
....



More information about the dev mailing list