[dpdk-dev] [PATCH 0/7] vhost/example cleanup/fix

Yuanhan Liu yuanhan.liu at linux.intel.com
Tue Apr 26 06:45:44 CEST 2016


I'm starting to work on the vhost ABI refactoring, that I also have to
touch the vhost example code, to make it work. The vhost example code,
however, is very messy, full of __very__ long lines. This would make
a later diff to apply the new vhost API be very ugly, therefore, not
friendly for review. This is how this cleanup comes.

Besides that, there is one enhancement patch, which handles the broadcast
packets so that we could rely the ARP request packet, to let vhost-switch
be more like a real switch. There is another patch that (hopefully) would
fix the mbuf allocation failure ultimately. I also added some guidelines
there as comments to show how to count how many mbuf entries is enough for
our usage.

---
Yuanhan Liu (7):
  examples/vhost: remove the non-working zero copy code
  examples/vhost: remove unused macro and struct
  examples/vhost: use tailq to link vhost devices
  examples/vhost: use mac compare helper function directly
  examples/vhost: handle broadcast packet
  examples/vhost: fix mbuf allocation failures
  examples/vhost: switch_worker cleanup

 doc/guides/sample_app_ug/vhost.rst |   36 +-
 examples/vhost/main.c              | 2319 ++++++------------------------------
 examples/vhost/main.h              |   49 +-
 3 files changed, 375 insertions(+), 2029 deletions(-)

-- 
1.9.0



More information about the dev mailing list