[dpdk-dev] [PATCH] Fill speed_capa for virtio

Ido Barnea (ibarnea) ibarnea at cisco.com
Fri Feb 10 08:49:42 CET 2017


Just wanted this to be consistent with below (From virtio_dev_link_update):
link.link_speed = SPEED_10G;



Need to put some value in speed_capa.

Ido




On 09/02/2017, 6:19 PM, "Thomas Monjalon" <thomas.monjalon at 6wind.com> wrote:

>2017-02-02 12:05, Ido Barnea:
>> From: Ido Barnea <ibarnea at cisco.com>
>> 
>> Signed-off-by: Ido Barnea <ibarnea at cisco.com>
>> ---
>>  drivers/net/virtio/virtio_ethdev.c | 1 +
>>  1 file changed, 1 insertion(+)
>> 
>> diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c
>> index d1ff234..1d572b5 100644
>> --- a/drivers/net/virtio/virtio_ethdev.c
>> +++ b/drivers/net/virtio/virtio_ethdev.c
>> @@ -1869,6 +1869,7 @@ virtio_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
>>  		(1ULL << VIRTIO_NET_F_HOST_TSO6);
>>  	if ((hw->guest_features & tso_mask) == tso_mask)
>>  		dev_info->tx_offload_capa |= DEV_TX_OFFLOAD_TCP_TSO;
>> +	dev_info->speed_capa = ETH_LINK_SPEED_10G;
>
>Why 10G ?
>Yuanhan, any opinion?


More information about the dev mailing list