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 542FFA0093; Mon, 15 Jun 2020 11:02:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 56A1149E0; Mon, 15 Jun 2020 11:02:09 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 63522100C for ; Mon, 15 Jun 2020 11:02:07 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200615090206euoutp01dbbd5b34be6642ffc4fc504ef04e582f~YrCEtLt-e2219822198euoutp013 for ; Mon, 15 Jun 2020 09:02:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200615090206euoutp01dbbd5b34be6642ffc4fc504ef04e582f~YrCEtLt-e2219822198euoutp013 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1592211726; bh=D8pTDLjStB6tBAHmx74pbohweddguQaKuqhgHUS7/uU=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=CVpNGnmgwzSkpnt742bkV6AThH04LYuuLPya5HQ8uy6QNpwQ/wdQRUj15FZLEadsp p2xX8arlexFstIjrIu4AfmfpXe5kSUskSxbkgesHejld0gdraY+qcNdOK1XYNZhMkJ eeLdEK6F9Y4O9uwikscAXcmkvmkwpLKzFLsjTRO8= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200615090206eucas1p255402bd4c8deb68f4be872461cb69317~YrCEdtaSk0461704617eucas1p2u; Mon, 15 Jun 2020 09:02:06 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id D9.FE.61286.E0937EE5; Mon, 15 Jun 2020 10:02:06 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200615090206eucas1p2372f00a6246d36c6d9c3575e17b53edc~YrCEHN-4Z0461704617eucas1p2t; Mon, 15 Jun 2020 09:02:06 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200615090206eusmtrp1e6c7dac2eaabaaa2dba53ba054ee4d48~YrCEGc7OY0978309783eusmtrp1d; Mon, 15 Jun 2020 09:02:06 +0000 (GMT) X-AuditID: cbfec7f2-f0bff7000001ef66-86-5ee7390ea173 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id E4.1A.08375.D0937EE5; Mon, 15 Jun 2020 10:02:06 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200615090205eusmtip1362d8502bc3540741bf64328e5c12a62~YrCDVtspO2966229662eusmtip1y; Mon, 15 Jun 2020 09:02:05 +0000 (GMT) From: Ivan Dyukov To: dev@dpdk.org, i.dyukov@samsung.com, v.kuramshin@samsung.com, thomas@monjalon.net, david.marchand@redhat.com, ferruh.yigit@intel.com, arybchenko@solarflare.com, wei.zhao1@intel.com, jia.guo@intel.com, beilei.xing@intel.com, qiming.yang@intel.com, wenzhuo.lu@intel.com Date: Mon, 15 Jun 2020 12:01:48 +0300 Message-Id: <20200615090158.18912-1-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200427095737.11082-1-i.dyukov@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA02SfSxVcRjH+51z7znHnavjsjyp9XKXTS1v6Y+DEpbttpq0abY26saZq+69 dA8K/ygvkxomU1glaozbyH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P/GV0 4PH4tWApq8fiPS+ZPI7dnMbu8X7fVTaPvi2rGD1WP/nBFsAWpWdTlF9akqqQkV9cYqsUbWhh pGdoaaFnZGKpZ2hsHmtlZKqkb2eTkpqTWZZapG+XoJfxYPENpoLdfBWnFm5kbWD8y9nFyMkh IWAi8ajtDXsXIxeHkMBSRonzK9+xdjFyACUkJF4/YYaoEZb4c62LDaLmM6PEve7PbCAJNgEN idMd85hAEiICS5gk9q46xwiSEBawkJj79DCYzSKgKrF7ST/YJF4BS4lpbw9DTZWXWL3hADPI Mk4BK4ln/5NBwkJAJZ/udbBA2HIS1+d/YYJoFZQ4OfMJC0g5s4C6xPp5QiBhZqApzVtnM09g FJyFpGoWQtUsJFULGJlXMYqklhbnpucWG+oVJ+YWl+al6yXn525iBEbftmM/N+9gvLQx+BCj AAejEg+vReizOCHWxLLiytxDjBIczEoivE5nT8cJ8aYkVlalFuXHF5XmpBYfYjQF+nIis5Ro cj4wMeSVxBuaGppbWBqaG5sbm1koifN2CByMERJITyxJzU5NLUgtgulj4uCUamD0zNsypUlz i2ZOqGIKw8Hrq9PcHLW6izdPO7/BT/z25QSDqeKfJ6ZxJsgxcyY6+d+5eiWnZJvgpEdXA2Y9 /hNb/l1/5/3Ny1Wb4nOWeDsvPzvF/fslUd3yo7urP1dus+E/U9fNzbyromHVZ572hn+5a8Nc 38tYMbV/DA63MuiYPqtCW9Cg01SJpTgj0VCLuag4EQBBXuRR1AIAAA== X-CMS-MailID: 20200615090206eucas1p2372f00a6246d36c6d9c3575e17b53edc X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200615090206eucas1p2372f00a6246d36c6d9c3575e17b53edc X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200615090206eucas1p2372f00a6246d36c6d9c3575e17b53edc References: <20200427095737.11082-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v3 0/7] ethdev: allow unknown link speed X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: i.dyukov@samsung.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" MAINTAINERS | 1 + app/proc-info/main.c | 9 +- app/test-pipeline/init.c | 10 +- app/test-pmd/config.c | 19 +-- app/test-pmd/testpmd.c | 9 +- app/test/Makefile | 3 + app/test/meson.build | 2 + app/test/test_ethdev_link.c | 253 +++++++++++++++++++++++++++++++++++++ app/test/test_pmd_perf.c | 17 +-- doc/guides/sample_app_ug/link_status_intr.rst | 10 +- drivers/net/i40e/i40e_ethdev.c | 5 +- drivers/net/i40e/i40e_ethdev_vf.c | 10 +- drivers/net/ice/ice_ethdev.c | 5 +- drivers/net/ixgbe/ixgbe_ethdev.c | 6 +- lib/librte_ethdev/rte_ethdev.c | 163 ++++++++++++++++++++++++ lib/librte_ethdev/rte_ethdev.h | 72 +++++++++-- 16 files changed, 529 insertions(+), 65 deletions(-) v3 changes: * remove rte_eth_link_prepare_text function * add rte_eth_link_format and rte_eth_link_printf functions * added unit tests for rte_eth_link_format function TBD: update examples in 'example' folder with new status printing mechanism update remaining nic drivers with 'unknown' speed v2 changes: * add function which format link status to textual representation * update drivers for Intel nics with 'unknown' speed TBD: update examples in 'example' folder with new status printing mechanism update remaining nic drivers with 'unknown' speed v1 changes: This is initial patchset which introduces UNKNOWN speed to dpdk applications. Also it contains changes related to printf formating. Patchset contains changes for app/ and doc/ folders. examples/ folder will be provided later.