From: Ivan Dyukov Date: Tue, 22 Sep 2020 21:18:02 +0000 (+0300) Subject: net/virtio: sync speed capability with ethdev X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e2572e43f1721446feb1a849b281d47a9cb7bfd2;p=dpdk.git net/virtio: sync speed capability with ethdev ethdev library was updated with new speed 200G Add 200G speed capa to virtio device Signed-off-by: Ivan Dyukov Reviewed-by: Maxime Coquelin --- diff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst index 164cab0c18..bfad2cb2b3 100644 --- a/doc/guides/rel_notes/release_20_11.rst +++ b/doc/guides/rel_notes/release_20_11.rst @@ -77,6 +77,7 @@ New Features * **Updated Virtio driver.** * Changed default link speed to unknown. + * Added support for 200G link speed. * **Extended flow-perf application.** diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 674feebfc0..1eb3240d89 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -2032,6 +2032,8 @@ virtio_dev_speed_capa_get(uint32_t speed) return ETH_LINK_SPEED_56G; case ETH_SPEED_NUM_100G: return ETH_LINK_SPEED_100G; + case ETH_SPEED_NUM_200G: + return ETH_LINK_SPEED_200G; default: return 0; }