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

Ido Barnea (ibarnea) ibarnea at cisco.com
Thu Feb 2 13:05:07 CET 2017


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;
 }/*
-- 
2.8.3



More information about the dev mailing list