]> git.proxmox.com Git - mirror_ovs.git/commit - lib/netdev-offload.h
netdev-offload: Use dpif type instead of class.
authorIlya Maximets <i.maximets@ovn.org>
Wed, 8 Jul 2020 06:38:29 +0000 (06:38 +0000)
committerIlya Maximets <i.maximets@ovn.org>
Wed, 8 Jul 2020 17:07:21 +0000 (19:07 +0200)
commit8842fdf1b318e626ab24025aaa285461d51a1621
treebeb2a0b13700520c9d909c5ac000b2ea4f781107
parent48c1ab5d74ece8d2e6dd332bfebd3a7adce9414b
netdev-offload: Use dpif type instead of class.

There is no real difference between the 'class' and 'type' in the
context of common lookup operations inside netdev-offload module
because it only checks the value of pointers without using the
value itself.  However, 'type' has some meaning and can be used by
offload provides on the initialization phase to check if this type
of Flow API in pair with the netdev type could be used in particular
datapath type.  For example, this is needed to check if Linux flow
API could be used for current tunneling vport because it could be
used only if tunneling vport belongs to system datapath, i.e. has
backing linux interface.

This is needed to unblock tunneling offloads in userspace datapath
with DPDK flow API.

Acked-by: Eli Britstein <elibr@mellanox.com>
Acked-by: Roni Bar Yanai <roniba@mellanox.com>
Acked-by: Ophir Munk <ophirmu@mellanox.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
lib/dpif-netdev.c
lib/dpif-netlink.c
lib/dpif.c
lib/netdev-offload-dpdk.c
lib/netdev-offload-tc.c
lib/netdev-offload.c
lib/netdev-offload.h
ofproto/ofproto-dpif-upcall.c