From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6AC87A0588; Thu, 16 Apr 2020 14:43:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BD0E71DC54; Thu, 16 Apr 2020 14:43:15 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 0EE471DC46 for ; Thu, 16 Apr 2020 14:43:14 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200416124313euoutp01b7fc5487a20e8577a23e4559a60a68fa~GTWAGGsH60589505895euoutp01R for ; Thu, 16 Apr 2020 12:43:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200416124313euoutp01b7fc5487a20e8577a23e4559a60a68fa~GTWAGGsH60589505895euoutp01R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1587040993; bh=bP3gVOxEAc5EbrtMaYMb9tqH5l6BzlAZrTyixpvKnwA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=c9+R7iSqVg0mcKd5huF2hmQksKmVeqBd9/66JSVhvDFTxrDkCe0r4l+ex8ADeyldt lldiBuMjw/Ugpa1qD6cZ3c3fmGUyOrOcdlzWL44Ocu6WnTjJy3AGjmKLrjtdWudSlR oP4dqOD9VjhGFMA0pEhYZoL+Qbri5LNEgC+rAgts= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200416124313eucas1p232699e2d186695c9f04d42d214192d3e~GTV-zdn7q1514415144eucas1p2R; Thu, 16 Apr 2020 12:43:13 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id D2.4E.60698.1E2589E5; Thu, 16 Apr 2020 13:43:13 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200416124312eucas1p23f4b85e17cf7f8f04c66ee3f16199936~GTV-dZGcp1462414624eucas1p2X; Thu, 16 Apr 2020 12:43:12 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200416124312eusmtrp268d54d74d2fce69736f8d6e2f9cc075a~GTV-cnpR41274212742eusmtrp2s; Thu, 16 Apr 2020 12:43:12 +0000 (GMT) X-AuditID: cbfec7f5-a29ff7000001ed1a-ae-5e9852e1a923 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id A5.BA.08375.0E2589E5; Thu, 16 Apr 2020 13:43:12 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200416124312eusmtip23d3554612b26d211fcf85bab3ddc07cf~GTV_2ENg90292802928eusmtip2S; Thu, 16 Apr 2020 12:43:12 +0000 (GMT) From: Ivan Dyukov To: dev@dpdk.org, maxime.coquelin@redhat.com, i.dyukov@samsung.com, v.kuramshin@samsung.com, amorenoz@redhat.com, zhihong.wang@intel.com, xiaolong.ye@intel.com, mb@smartsharesystems.com Date: Thu, 16 Apr 2020 15:42:53 +0300 Message-Id: <20200416124258.15549-3-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200416124258.15549-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrIIsWRmVeSWpSXmKPExsWy7djP87oPg2bEGXxfxWLRuuMBi8W7T9uZ LGZdamK3ONa5h8Wi79dVRovTNzezW/x5Y2qx+eIkJgcOj18LlrJ6LN7zksnj/b6rbB59W1Yx epx61M0cwBrFZ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khI vH7CDFEjLPHnWhcbRM1nRol97y+ygCTYBDQkTnfMA2sWETjOKNE76z8TSEJYwFGi+dwiNhCb RUBV4nNPD1gDr4ClxMsZv1kgpspLrN5wAGwDp4CVxN3uV6wgtpBAhsTCS49ZJjDyLmBkWMUo klpanJueW2yoV5yYW1yal66XnJ+7iREYptuO/dy8g/HSxuBDjAIcjEo8vAn2M+KEWBPLiitz DzFKcDArifDymQKFeFMSK6tSi/Lji0pzUosPMZoCHTWRWUo0OR8YQ3kl8YamhuYWlobmxubG ZhZK4rwdAgdjhATSE0tSs1NTC1KLYPqYODilGhhtEuUeLM6tj5PIDlz/xp5nbdaFTIPEjPC/ D1pd/885P3WmbKfd6sUZdfIPSv5me6hM3/pY2sWmw6zDeSnPsn37LXnV1t68pSZqx5mzaG7x a7XXFffM/CqnCEec5/06cbfOsjUX3sQbVZW/lRULyJigszl6z901xYl/2dSqjRoFjcP1vSP2 RCqxFGckGmoxFxUnAgCKQOxQaQIAAA== X-CMS-MailID: 20200416124312eucas1p23f4b85e17cf7f8f04c66ee3f16199936 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200416124312eucas1p23f4b85e17cf7f8f04c66ee3f16199936 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200416124312eucas1p23f4b85e17cf7f8f04c66ee3f16199936 References: <20191212085012.9170-1-i.dyukov@samsung.com> <20200416124258.15549-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v12 2/7] net/virtio: replace default virtio speed X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch set speed to unknown Signed-off-by: Ivan Dyukov --- drivers/net/virtio/virtio_ethdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index f9d0ea70d..f914329ed 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -2371,8 +2371,8 @@ virtio_dev_link_update(struct rte_eth_dev *dev, __rte_unused int wait_to_complet memset(&link, 0, sizeof(link)); link.link_duplex = ETH_LINK_FULL_DUPLEX; - link.link_speed = ETH_SPEED_NUM_10G; - link.link_autoneg = ETH_LINK_FIXED; + link.link_speed = ETH_SPEED_NUM_UNKNOWN; + link.link_autoneg = ETH_LINK_AUTONEG; if (!hw->started) { link.link_status = ETH_LINK_DOWN; @@ -2427,7 +2427,7 @@ virtio_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) uint64_t tso_mask, host_features; struct virtio_hw *hw = dev->data->dev_private; - dev_info->speed_capa = ETH_LINK_SPEED_10G; /* fake value */ + dev_info->speed_capa = ETH_LINK_SPEED_AUTONEG; /* fake value */ dev_info->max_rx_queues = RTE_MIN(hw->max_queue_pairs, VIRTIO_MAX_RX_QUEUES); -- 2.17.1