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 70C4EA04B5; Tue, 22 Sep 2020 23:18:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B093B1DB1A; Tue, 22 Sep 2020 23:18:34 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id D1D481DB09 for ; Tue, 22 Sep 2020 23:18:32 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200922211832euoutp01ce9b6d848056dc78bc39caf0950ed582~3N8UxD6kW2080220802euoutp01F for ; Tue, 22 Sep 2020 21:18:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200922211832euoutp01ce9b6d848056dc78bc39caf0950ed582~3N8UxD6kW2080220802euoutp01F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1600809512; bh=hwgN7vHEX+Am0t0JGvlCdYy0+UJaNZ8dPJmf2fPbdtE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nwAUnoe1bbIAQHlyB8HkOiPUhvfYGW2rZ/EDa4eS4iI66RUZbNLR8SPNULDaXB19j /x8sto2e9eYgrVPiiXmLsSZAqg/IZ5o5MRo57cJtEapaaevKSqd7gDEtU8LA+/qfN6 TzQprrtk0fphWFbaYCMltgl/gxLFmEk9jhKcFo4o= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200922211832eucas1p27f9cf9d4670ff1738164c873d5ef98df~3N8UZ89pk1783017830eucas1p2V; Tue, 22 Sep 2020 21:18:32 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 68.AA.06318.82A6A6F5; Tue, 22 Sep 2020 22:18:32 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200922211831eucas1p275c488f015668bb7e60eabb29269049e~3N8TThE7i1562915629eucas1p2f; Tue, 22 Sep 2020 21:18:31 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200922211831eusmtrp101cac380dec61abbba80e4ae98a5b978~3N8TS8QRf1591815918eusmtrp1j; Tue, 22 Sep 2020 21:18:31 +0000 (GMT) X-AuditID: cbfec7f5-38bff700000018ae-6d-5f6a6a28b3ab Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 18.49.06314.62A6A6F5; Tue, 22 Sep 2020 22:18:31 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200922211830eusmtip2c091a391387fa91971c0a96d8dbbaf37~3N8SyBeQP3026730267eusmtip23; Tue, 22 Sep 2020 21:18:30 +0000 (GMT) From: Ivan Dyukov To: maxime.coquelin@redhat.com, chenbo.xia@intel.com, zhihong.wang@intel.com, john.mcnamara@intel.com, marko.kovacevic@intel.com Cc: dev@dpdk.org, Ivan Dyukov Date: Wed, 23 Sep 2020 00:18:02 +0300 Message-Id: <20200922211806.21938-3-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200922211806.21938-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOIsWRmVeSWpSXmKPExsWy7djP87oaWVnxBmsauS06eo6zW7z7tJ3J YtalJnaL8/O2slqc39jLanGscw+LxeaLk5gc2D1+LVjK6rF4z0smj/f7rrJ59G1ZxRjAEsVl k5Kak1mWWqRvl8CVceXEB9aCrawV2xd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JtNQEPidMc8JpBeEYEORompe3rBhjILmEncnniOFcQWFnCVOL1mI1gz i4CqRNu0B4wgNq+ApcS1PU2sEAvkJVZvOAC2jFPASmJH3yQWkBuEgGpmXVefwMi3gJFhFaNI amlxbnpusaFecWJucWleul5yfu4mRmCgbjv2c/MOxksbgw8xCnAwKvHwvniSGS/EmlhWXJl7 iFGCg1lJhNfp7Ok4Id6UxMqq1KL8+KLSnNTiQ4ymQDdNZJYSTc4HRlFeSbyhqaG5haWhubG5 sZmFkjhvh8DBGCGB9MSS1OzU1ILUIpg+Jg5OqQbGzLMP1kbpTbSZk5bxjrH+bcOq99esn3jd m3+5NPfIU+dz0peZm2+a7Yv8prjCf3deSXPYfetJD89EtFzTZnAtcSx62sB40OH36t185/20 Pxx7ueJAg2uIRM9hzc51RZxWsdJmah+DrdpsJh94fEGtRj3dzIF/UxTvR9+i4+d/M0eel1v8 +eMbJZbijERDLeai4kQAqKBBB2oCAAA= X-CMS-MailID: 20200922211831eucas1p275c488f015668bb7e60eabb29269049e X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200922211831eucas1p275c488f015668bb7e60eabb29269049e X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200922211831eucas1p275c488f015668bb7e60eabb29269049e References: <20200922211806.21938-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH 2/2] net/virtio: sync a virtio speed capa with ethdev 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" ethdev library was updated with new speed 200G Add 200G speed capa to virtio device Signed-off-by: Ivan Dyukov --- 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; } -- 2.17.1