From e2572e43f1721446feb1a849b281d47a9cb7bfd2 Mon Sep 17 00:00:00 2001 From: Ivan Dyukov Date: Wed, 23 Sep 2020 00:18:02 +0300 Subject: [PATCH] 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 --- doc/guides/rel_notes/release_20_11.rst | 1 + drivers/net/virtio/virtio_ethdev.c | 2 ++ 2 files changed, 3 insertions(+) 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; } -- 2.20.1