net/virtio: sync speed capability with ethdev
authorIvan Dyukov <i.dyukov@samsung.com>
Tue, 22 Sep 2020 21:18:02 +0000 (00:18 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 21:16:55 +0000 (23:16 +0200)
ethdev library was updated with new speed 200G

Add 200G speed capa to virtio device

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

index 164cab0..bfad2cb 100644 (file)
@@ -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.**
 
index 674feeb..1eb3240 100644 (file)
@@ -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;
        }