From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] Fill speed_capa for virtio Date: Thu, 09 Feb 2017 17:19:19 +0100 Message-ID: <1524443.RGCIa5yWyV@xps13> References: <20170202092357.58508-1-ibarnea@cisco.com> <329CA03F-B2B1-4187-945D-59973EEDF368@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Yuanhan Liu To: "Ido Barnea (ibarnea)" Return-path: Received: from mail-wr0-f172.google.com (mail-wr0-f172.google.com [209.85.128.172]) by dpdk.org (Postfix) with ESMTP id B9BF5FA6E for ; Thu, 9 Feb 2017 17:19:20 +0100 (CET) Received: by mail-wr0-f172.google.com with SMTP id k90so86976902wrc.3 for ; Thu, 09 Feb 2017 08:19:20 -0800 (PST) In-Reply-To: <329CA03F-B2B1-4187-945D-59973EEDF368@cisco.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2017-02-02 12:05, Ido Barnea: > From: Ido Barnea > > Signed-off-by: Ido Barnea > --- > 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?