net/virtio: add speed capability
authorIdo Barnea <ibarnea@cisco.com>
Thu, 2 Feb 2017 12:05:07 +0000 (12:05 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 10 Feb 2017 11:06:16 +0000 (12:06 +0100)
commitb392e9871d771a506a7aebf5545dbf08d79cb9e5
treedf45f4fd45cd63b6020e9c3e551dbb3db94ebf6e
parent18aea6b6f8a66f7ea012ba7db84fadbbbd4544c3
net/virtio: add speed capability

The chosen fake capability (10G) is consistent with the reported
link speed in virtio_dev_link_update():
link.link_speed = SPEED_10G;

The feature is not marked in doc/guides/nics/features/virtio.ini
because it is only a fake value.

Signed-off-by: Ido Barnea <ibarnea@cisco.com>
[Thomas: comments added]
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
drivers/net/virtio/virtio_ethdev.c