diff options
author | Vlad Buslov <vladbu@mellanox.com> | 2020-06-04 13:47:00 +0300 |
---|---|---|
committer | Simon Horman <simon.horman@netronome.com> | 2020-06-05 10:14:27 +0200 |
commit | 191536574e3bd90fd30208ceb02305bd1ce13d11 (patch) | |
tree | 4081eb5244a3948d1eb300a534debf88f50cb62f /lib/netdev-offload-provider.h | |
parent | 3f82ac1fe36d6d8ad9b21750e7d878394f031147 (diff) | |
download | openvswitch-191536574e3bd90fd30208ceb02305bd1ce13d11.tar.gz |
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>
Diffstat (limited to 'lib/netdev-offload-provider.h')
-rw-r--r-- | lib/netdev-offload-provider.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/netdev-offload-provider.h b/lib/netdev-offload-provider.h index 5a809c0cd..0bed7bf61 100644 --- a/lib/netdev-offload-provider.h +++ b/lib/netdev-offload-provider.h @@ -42,7 +42,8 @@ struct netdev_flow_api { * * On success returns 0 and allocates data, on failure returns * positive errno. */ - int (*flow_dump_create)(struct netdev *, struct netdev_flow_dump **dump); + int (*flow_dump_create)(struct netdev *, struct netdev_flow_dump **dump, + bool terse); int (*flow_dump_destroy)(struct netdev_flow_dump *); /* Returns true if there are more flows to dump. |