[2/2] net/virtio: sync a virtio speed capa with ethdev
Checks
Commit Message
ethdev library was updated with new speed 200G
Add 200G speed capa to virtio device
Signed-off-by: Ivan Dyukov <i.dyukov@samsung.com>
---
drivers/net/virtio/virtio_ethdev.c | 2 ++
1 file changed, 2 insertions(+)
Comments
On 9/22/20 11:18 PM, Ivan Dyukov wrote:
> ethdev library was updated with new speed 200G
>
> Add 200G speed capa to virtio device
>
> Signed-off-by: Ivan Dyukov <i.dyukov@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;
> }
>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
On 9/22/20 11:18 PM, Ivan Dyukov wrote:
> ethdev library was updated with new speed 200G
>
> Add 200G speed capa to virtio device
>
> Signed-off-by: Ivan Dyukov <i.dyukov@samsung.com>
> ---
> drivers/net/virtio/virtio_ethdev.c | 2 ++
> 1 file changed, 2 insertions(+)
Applied to dpdk-next-virtio/main.
Thanks,
Maxime
@@ -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;
}