[ovs-dev] [RFC v2 0/4] netdev-offload: Prerequisites of vport offloading via DPDK.

Ilya Maximets i.maximets at ovn.org
Fri Nov 15 20:13:45 UTC 2019


These patches are necessary to enable vxlan offloading for
userspace datapath via DPDK flow offloading API (not tested).
They allows to properly distinguish userspace tunnels from the
system tunnels on netdev level in order to choose appropriate
flow offloading API provider.  Before these patches it was not
possible because tunneling ports are implemented by the same
netdev-vport classes and uses same dpif port names, so only
ofproto really knows which netdevs assigned to each dpif.

RFC v2:
  * Added 2 patches for using dpif type.
  * Last patch updated to use netdev dpif_type instead of traversing
    dpif ports.

Ilya Maximets (4):
  netdev: Allow storing dpif type into netdev structure.
  netdev-offload: Use dpif type instead of class.
  netdev-offload: Allow offloading to netdev without ifindex.
  netdev-offload: Disallow offloading to unrelated tunneling vports.

 lib/dpif-netdev.c             |  2 +-
 lib/dpif-netlink.c            | 23 ++++++------
 lib/dpif.c                    | 21 ++++++-----
 lib/netdev-offload-dpdk.c     |  8 +++++
 lib/netdev-offload-tc.c       | 12 +++++--
 lib/netdev-offload.c          | 68 ++++++++++++++++++-----------------
 lib/netdev-offload.h          | 16 ++++-----
 lib/netdev-provider.h         |  3 +-
 lib/netdev.c                  | 16 +++++++++
 lib/netdev.h                  |  2 ++
 ofproto/ofproto-dpif-upcall.c |  5 ++-
 11 files changed, 108 insertions(+), 68 deletions(-)

-- 
2.17.1



More information about the dev mailing list