[dpdk-dev] [PATCH 0/4] vhost vlan tag and TSO fixes/cleanups

Yuanhan Liu yuanhan.liu at linux.intel.com
Fri Mar 25 07:01:30 CET 2016


Ksiadz reported that TSO won't work for OVS with NIC, even with those
similar changes from the commit 9fd72e3cbd29 ("examples/vhost: add
virtio offload").

This gives me another chance to look at the TSO implementation a bit
deeper, and then came up with this small patch set, which moves some
left settings for enabling TSO to vhost lib.

With this patch set, an application can do mimimal (or even no)
changes to get the TSO capability. Take OVS as example, it just need
set MTU correctly and set the NIC port txq_flags properly to enable
NIC offloading ability, which is disabled by default for some drivers.

Patch 4 is a vlan tag fix reported by Qian.

---
Yuanhan Liu (4):
  vhost: remove unnecessary return
  vhost: complete TSO settings
  examples/vhost: remove unnessary settings for TX offload
  examples/vhost: fix wrong vlan_tag

 examples/vhost/main.c         | 64 +++----------------------------------------
 lib/librte_vhost/vhost_rxtx.c | 49 +++++++++++++++++++++++----------
 2 files changed, 39 insertions(+), 74 deletions(-)

-- 
1.9.0



More information about the dev mailing list