[dpdk-dev] [PATCH 2/2] net/virtio: sync a virtio speed capa with ethdev
Ivan Dyukov
i.dyukov at samsung.com
Tue Sep 22 23:18:02 CEST 2020
ethdev library was updated with new speed 200G
Add 200G speed capa to virtio device
Signed-off-by: Ivan Dyukov <i.dyukov at samsung.com>
---
drivers/net/virtio/virtio_ethdev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c
index 0ef88feda..46ecc14a1 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.17.1
More information about the dev
mailing list