net/virtio: fetch extended statistics with integer ids
authorRemy Horton <remy.horton@intel.com>
Wed, 15 Jun 2016 15:25:32 +0000 (16:25 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 16 Jun 2016 15:57:29 +0000 (17:57 +0200)
commitbaf91c395b18b8bc5ddbda6326354c7436d90330
treecd5fa181b8ab0b0f9c6c3b343b8b72390005e942
parent31dc62ef39f4d9de797940c48d96805fd6ace2a2
net/virtio: fetch extended statistics with integer ids

The current extended ethernet statistics fetching involve doing several
string operations, which causes performance issues if there are lots of
statistics and/or network interfaces. This patch changes the virtio driver
to use the new API that seperates name string and value queries.

Signed-off-by: Remy Horton <remy.horton@intel.com>
drivers/net/virtio/virtio_ethdev.c