[dpdk-dev] [PATCH 2/2] net/virtio: sync a virtio speed capa with ethdev

Maxime Coquelin maxime.coquelin at redhat.com
Fri Sep 25 16:35:58 CEST 2020



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 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;
>  	}
> 

Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>



More information about the dev mailing list