net/virtio: add link speed parameter
authorIvan Dyukov <i.dyukov@samsung.com>
Mon, 30 Mar 2020 07:57:59 +0000 (10:57 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:09 +0000 (13:57 +0200)
commit49119e3855bd9cfcf3cdcb0db50aa53d5a746ecc
treedc0f459be9e5da9f766492a2c52d0309d50ecae4
parent44d7b2e87b6938e23b834effe6066fd971623854
net/virtio: add link speed parameter

Some applications like pktgen use link speed to calculate
transmission rate. It limits outcome traffic to hardcoded 10G.

This patch adds speed devarg which allows to configure
link speed of virtio device.

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