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 05A04A0588; Wed, 8 Apr 2020 00:26:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CA09D1BFB7; Wed, 8 Apr 2020 00:26:55 +0200 (CEST) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 646031BF9D for ; Wed, 8 Apr 2020 00:26:54 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 9A1EB5C0118; Tue, 7 Apr 2020 18:26:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Tue, 07 Apr 2020 18:26:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mesmtp; bh=e04Nk8S+1zLMCbTszcagfUlfCP/Fj0i3QV03CgBc9Kc=; b=UisVHwgqjZc3 LlCyYI5NwmapbK1BbtAoY9S3oUgE78xVjkIL/O8nUby7ZXl5WAh2XKF3Zdl2+L0C x7P4XpI//YPnh3HuAiFRlBkb8pyXGfY92S2Vz8r0GVVFWfacrADZ7q8ltczWF0CH f4xGv9xSd5VBriCrGODELvOKFSE/ttE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=e04Nk8S+1zLMCbTszcagfUlfCP/Fj0i3QV03CgBc9 Kc=; b=frys53kIbSQfJxjGyi8+78SP1RdgqzDG3H+e655ab+Q/0uc2fdgi39jkh hPtl2PkhxgtYw8aqJknS8vc+ofKiK6IffGHZWqRejam/3DQUbSLw2DiEVegNCGgh lulVt3uzui1ixZZID6nrJ1691gv1j6Y7AaGDlKtkEoqs/Q1RAH5DsBIZrUozMWtZ Kh+fZhvnI52s4JcwgvDkrA6fbTKaE+2RhPRXZbQULV9l1aHAvNsiQ4Yus/nKWu0Q MmN0+H2uz39vbv6/vHS4hS9Z+GFga3J9ojM4KzPb/Yb5EBe/nNGZfWsID84CeTkl ZZcTKA5JkbI1r2kW4G798OIHdb+bQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeigddtlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfgggtgfesthekre dtredtjeenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshes mhhonhhjrghlohhnrdhnvghtqeenucffohhmrghinhepughpughkrdhorhhgnecukfhppe ejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 0A7EC3280063 for ; Tue, 7 Apr 2020 18:26:52 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Date: Wed, 8 Apr 2020 00:26:35 +0200 Message-Id: <20200407222637.55289-1-thomas@monjalon.net> X-Mailer: git-send-email 2.26.0 In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35C60F3C@smartserver.smartshare.dk> References: <98CBD80474FA8B44BF855DF32C47DC35C60F3C@smartserver.smartshare.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 0/2] ethdev link 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" Following 2 discussions about link speed, here is an API update and a small clean-up. Morten's proposal: http://inbox.dpdk.org/dev/4957996.Zugxlq0yvN@xps/ Recent Ivan's virtio patch assuming the same API update: http://inbox.dpdk.org/dev/20200406085855.25773-6-i.dyukov@samsung.com/ Benoit's proposal to return mlx5 link status even without speed info: http://inbox.dpdk.org/dev/20200327172449.6514-1-bganne@cisco.com/ Thomas Monjalon (2): ethdev: deduplicate functions to get link infos ethdev: allow unknown link speed lib/librte_ethdev/rte_ethdev.c | 52 ++++++++++++++-------------------- lib/librte_ethdev/rte_ethdev.h | 20 ++++++------- 2 files changed, 32 insertions(+), 40 deletions(-) -- 2.26.0