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 65D39A0520; Thu, 2 Jul 2020 15:22:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 475A21D96E; Thu, 2 Jul 2020 15:22:05 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 5B64D1D949 for ; Thu, 2 Jul 2020 15:22:04 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200702132203euoutp02e662bbc9a51c9376a25d2ba3731df2f5~d8i5Nj6s_1587015870euoutp02f for ; Thu, 2 Jul 2020 13:22:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200702132203euoutp02e662bbc9a51c9376a25d2ba3731df2f5~d8i5Nj6s_1587015870euoutp02f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1593696123; bh=xdCTqO7zzRR84bT8AmYJU5rnX+j0NqPYe85x+jI+AHM=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=IUbx34NWHkx4x0A76sc6kCo+J9uuskELxhXFK6mkmDe1h67CuvRY2tIpJhJVuQGvO fNgEVSfGSSnZ0P2yNFeJs17n1FGly647UoykGHEQSvLUBSLZYaDnZPbBTNH+npvmnR 2Yc/ndxeq3LWHaPbLC/DL/7kp3SbsrtGqezC/GYQ= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200702132203eucas1p1923e9fdab5b20433159adfbbcf5a8263~d8i47r2id2041920419eucas1p1X; Thu, 2 Jul 2020 13:22:03 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 64.5F.05997.B7FDDFE5; Thu, 2 Jul 2020 14:22:03 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200702132203eucas1p2cf39d174c43185b6b825e5238f98acda~d8i4fmWQH3208332083eucas1p2K; Thu, 2 Jul 2020 13:22:03 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200702132203eusmtrp20f0bf97ee5fae78f8b848fbb6fa92218~d8i4exm9C2389023890eusmtrp2W; Thu, 2 Jul 2020 13:22:03 +0000 (GMT) X-AuditID: cbfec7f4-677ff7000000176d-91-5efddf7b1a51 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 2B.D2.06314.A7FDDFE5; Thu, 2 Jul 2020 14:22:02 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200702132202eusmtip266d1344a4247059ee168839fc06b3471~d8i3oMKID1001910019eusmtip2z; Thu, 2 Jul 2020 13:22:02 +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, mb@smartsharesystems.com, stephen@networkplumber.org Date: Thu, 2 Jul 2020 16:21:27 +0300 Message-Id: <20200702132139.28078-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: H4sIAAAAAAAAA+NgFjrHKsWRmVeSWpSXmKPExsWy7djP87rV9//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FZvPu0ncnizt7T7BazLjWxWzz/84rZou/XVUaLKTt3MFosviNn8enBCRaL0zc3s1us +XqR2WLrmb+MDnwevxYsZfVYvOclk8exm9PYPXpOzmPyeL/vKptH35ZVjB6nHnUze6x+8oMt gCNKz6Yov7QkVSEjv7jEVina0MJIz9DSQs/IxFLP0Ng81srIVEnfziYlNSezLLVI3y5BL+PW vl+MBb2CFRv7oxsYJ/J0MXJySAiYSBx6f4qpi5GLQ0hgKaPE0gkf2LsYOYASEhKvnzBD1AhL /LnWxQZR85lRYl7fQ0aQBJuAhsTpjnlMILaIwD0miS0rVUFsYQELiVdvW8CaWQRUJaa1LWUH sXkFLCUuzd4LNVReYvWGA8wguzgFrCSe/U8GCQsBlXy618ECYctJXJ//hQmiVVDi5MwnLCDl zALqEuvnCYGEmYGmNG+dzTyBUXAWkqpZCFWzkFQtYGRexSiSWlqcm55bbKhXnJhbXJqXrpec n7uJERif24793LyD8dLG4EOMAhyMSjy8E47/jRNiTSwrrsw9xCjBwawkwut09nScEG9KYmVV alF+fFFpTmrxIUZToC8nMkuJJucDU0deSbyhqaG5haWhubG5sZmFkjhvh8DBGCGB9MSS1OzU 1ILUIpg+Jg5OqQbGaeq7PtvZypSedkl7wba64/+cPzOll5gqhTB82WJU6Gosoujjuair0ZNj i9mco9NfeDH89kuUrD5esn/C0ne/Cu+sV3e9tbnsmXXR/j3nDu7Y+uzelEiVOaxvb5p1LrIw 9pG+b7jmptCDBc/WW9wKar7T7hu1RNVnY1MEj85+jv/XP/er14XmK7EUZyQaajEXFScCAAIm KNblAgAA X-CMS-MailID: 20200702132203eucas1p2cf39d174c43185b6b825e5238f98acda X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200702132203eucas1p2cf39d174c43185b6b825e5238f98acda X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200702132203eucas1p2cf39d174c43185b6b825e5238f98acda References: <20200427095737.11082-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v4 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 | 11 +- 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 | 278 ++++++++++++++++++++++++++++++++++ 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 | 168 ++++++++++++++++++++ lib/librte_ethdev/rte_ethdev.h | 74 +++++++-- lib/librte_ethdev/rte_ethdev_version.map | 4 + 17 files changed, 566 insertions(+), 65 deletions(-) v4 changes: * refactor rte_eth_link_format using strlcat func instead of snprintf * added new checks to unit tests * few minor fixes according review comments TBD: update examples in 'example' folder with new status printing mechanism update remaining nic drivers with 'unknown' speed 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.