]> git.proxmox.com Git - ovs.git/commit
netdev-dpdk: Refactor vhost custom stats for extensibility.
authorIlya Maximets <i.maximets@samsung.com>
Tue, 6 Aug 2019 15:57:09 +0000 (18:57 +0300)
committerIlya Maximets <i.maximets@samsung.com>
Mon, 26 Aug 2019 11:03:37 +0000 (14:03 +0300)
commit5c7ba90d8189ee7b35a1723d5a76dc205720af50
tree11b9ef2ad188498fcd7cc716dfbb977a8e212d28
parent18366d165162051463fd28e9f46d1c2cbe355eb3
netdev-dpdk: Refactor vhost custom stats for extensibility.

vHost interfaces currently has only one custom statistic, but there
might be others in the near future. This refactoring makes the code
work in the same way as it done for dpdk and afxdp stats to keep the
common style over the different code places and makes it easily
extensible for the new stats addition.

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
lib/netdev-dpdk.c