]> git.proxmox.com Git - mirror_ovs.git/commit
netdev-offload: Implement terse dump support
authorVlad Buslov <vladbu@mellanox.com>
Thu, 4 Jun 2020 10:47:00 +0000 (13:47 +0300)
committerSimon Horman <simon.horman@netronome.com>
Fri, 5 Jun 2020 08:14:27 +0000 (10:14 +0200)
commit191536574e3bd90fd30208ceb02305bd1ce13d11
tree4081eb5244a3948d1eb300a534debf88f50cb62f
parent3f82ac1fe36d6d8ad9b21750e7d878394f031147
netdev-offload: Implement terse dump support

In order to improve revalidator performance by minimizing unnecessary
copying of data, extend netdev-offloads to support terse dump mode. Extend
netdev_flow_api->flow_dump_create() with 'terse' bool argument. Implement
support for terse dump in functions that convert netlink to flower and
flower to match. Set flow stats "used" value based on difference in number
of flow packets because lastuse timestamp is not included in TC terse dump.

Kernel API support is implemented in following patch.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
lib/dpif-netlink.c
lib/netdev-offload-provider.h
lib/netdev-offload-tc.c
lib/netdev-offload.c
lib/netdev-offload.h
ofproto/ofproto-dpif-upcall.c