net/virtio: support Virtio link speed feature
authorIvan Dyukov <i.dyukov@samsung.com>
Mon, 30 Mar 2020 07:58:02 +0000 (10:58 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:09 +0000 (13:57 +0200)
commit1357b4b36246da9dd36d21754234dc306d51f7b4
treea60d91027e470743135ff05bce5ba4df7687a245
parentb0db4bea00fff31fced814069028fc4c1de5cf22
net/virtio: support Virtio link speed feature

This patch adds a support of VIRTIO_NET_F_SPEED_DUPLEX feature
for virtio driver.

There are two ways to specify speed of the link:
   'speed' devarg
   negotiate speed from qemu via VIRTIO_NET_F_SPEED_DUPLEX
The highest priority is devarg. If devarg is not specified,
drivers tries to negotiate it from qemu.

Signed-off-by: Ivan Dyukov <i.dyukov@samsung.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_ethdev.h
drivers/net/virtio/virtio_pci.h