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 3B122A04B5; Thu, 10 Sep 2020 21:34:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8A95F1DB8; Thu, 10 Sep 2020 21:34:13 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id ED5D7160 for ; Thu, 10 Sep 2020 21:34:11 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200910193411euoutp02aef34f8ddd097e5f7278258024ee4bd0~zgxyC5_4V0499204992euoutp02V; Thu, 10 Sep 2020 19:34:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200910193411euoutp02aef34f8ddd097e5f7278258024ee4bd0~zgxyC5_4V0499204992euoutp02V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1599766451; bh=JhVUnILV1lGWZ2B8dwdiqgNec2Ubaqiebk7OabsyT8Q=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=cGnlkKfu58n6IP7zBZWNckKMKysP4ERLTj00rOBGo2sjMpf0NhO2D+T5kUVc0r2Ma bP2BW9FF2z7Bv7Yw9f5HH/c+3s74FDqzVwWFRg+djB9YUaheR9KOirKdFYZxFZizp6 bu29qrkrnBoLFIcaXLcTGdyMI1amgJS4BSLNAFMA= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200910193410eucas1p2c67592567a653017d93ea7c3c1b6aeec~zgxxgNW2K2394823948eucas1p2h; Thu, 10 Sep 2020 19:34:10 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 24.0D.06456.2BF7A5F5; Thu, 10 Sep 2020 20:34:10 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200910193410eucas1p29505d39a12622591403cba95ef5bdaca~zgxxC-clm2490124901eucas1p2j; Thu, 10 Sep 2020 19:34:10 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200910193410eusmtrp1032e109c7a6bcca90a48a0a95da8b42c~zgxxB0gvG3165331653eusmtrp1p; Thu, 10 Sep 2020 19:34:10 +0000 (GMT) X-AuditID: cbfec7f2-809ff70000001938-73-5f5a7fb2480c Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 2F.7A.06017.1BF7A5F5; Thu, 10 Sep 2020 20:34:09 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200910193408eusmtip2786a2b82ed13d38249bd5ffe18ff9945~zgxvSwyfT2429924299eusmtip2J; Thu, 10 Sep 2020 19:34:08 +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, nicolas.chautru@intel.com, bruce.richardson@intel.com, konstantin.ananyev@intel.com, cristian.dumitrescu@intel.com, radu.nicolau@intel.com, akhil.goyal@nxp.com, declan.doherty@intel.com, skori@marvell.com, pbhagavatula@marvell.com, jerinj@marvell.com, kirankumark@marvell.com, david.hunt@intel.com, anatoly.burakov@intel.com, xiaoyun.li@intel.com, jingjing.wu@intel.com, john.mcnamara@intel.com, jasvinder.singh@intel.com, byron.marohn@intel.com, yipeng1.wang@intel.com Date: Thu, 10 Sep 2020 22:33:33 +0300 Message-Id: <20200910193400.15326-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: H4sIAAAAAAAAA01Sf0wbdRTP9+56d1S6fHeb2QsjW9aEqEsG2zTmuRmnxsT7Y4kzmqCoY924 MALtZm+dQsxkoGwptdKyuaxdKtKYjmKC/CxbYELnYNgxQg1uTGSEoAsTOgY0CoJIORb33+d9 Pp/33uclT2SlRj5FzLMcU6wWU4GR13MtXXN92xo+zcrePn4yFetu+AiODvtZHDnzG4/lU58x eDu4B9tCF3TovlvMoNP9kMHQRTuPEyMlHMamQwwOtUcE9ERLBJwO3xPwiz4vwXsL91k8XzVD sM/XrMO5zss8Plio5tA5P0Dwy6brBLsdDzk8c6mVYJmd4lRNQED/0CacHrnOYWSwUcDv4v0s Nt9YJOjqriPYW7ake3mLPF/1rU72t40zcuU3/azcNfiVIDt6fIxcH2tl5AdXBnjZ2RQk8k+j 5axcO/Y3v0+fpX8xRynIO65YM146oD/sDC4KR+1bPy71CsWkY6OdJIlAn4MuzwSxE70o0YsE KiMxXUKQ6CwB79ReTZghMNEXJ486ztbcZDUhQGC8/EedVsQJuIfn+YSLp09D5LSPSQjraT0P oYVbTEJYR3fDXHVgGYsiR9Ngtv2TBDTQF2Cg7HltwWao/b6DTdBJdBf8sXRIC7QJbn09uzLE QNdCz/kxLoHZZXtps3clD9AlEVprr60GfQ2i7W5Gw+vgfneToOFUiFQ6OK3hFAFXS6OgFRUE Sr2Tq6490PTnTSGRgqXPQN3lDI1+BbpaOldooGvg9uRaLcQacLecYzXaAKfLJM1thI6e6CoN sPhPsgZlaHAUVZAtnseO8Tx2jOf/rVWEDZINik015yrqDovyUbpqMqs2S276oSPmBrL8ypF/ u6db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qaptEqJ7INbGxErByppypc4TFxSpl+t7jX2IiwnFQH KdY+8mxTKhL0e/cJFnOcJcUgiI0o2PfjCVI1Pd7s26DJGqcJ1oRCmCZUF6oLAfUMRRbbsFXJ Juqtwi5BSBYsf+8IuZ8qFVVvozlq/dqaHSEXF7q0lQGnn+W3li4W4R4XXdGTwVbSO1wNs67k e9btM3boXqW/6cs7u6u3f9mS8q702OLszbkZR3NufDbYDdkxT6dFmZyzA92uZo2uyfNt07sF KtWajLZBhXP6h2Jvqd/djDNT7v6ITD4Qa82vuf7u+8y6lkuGfjUlJuk1S0mLqP8DtbCUYUsD AAA= X-CMS-MailID: 20200910193410eucas1p29505d39a12622591403cba95ef5bdaca X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200910193410eucas1p29505d39a12622591403cba95ef5bdaca X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200910193410eucas1p29505d39a12622591403cba95ef5bdaca References: <20200427095737.11082-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v10 00/24] 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 | 20 +++-- app/test-pmd/testpmd.c | 9 +- app/test/Makefile | 3 + app/test/meson.build | 2 + app/test/test_ethdev_link.c | 299 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 +- examples/bbdev_app/main.c | 8 +- examples/ioat/ioatfwd.c | 13 ++- examples/ip_fragmentation/main.c | 13 ++- examples/ip_pipeline/cli.c | 12 +-- examples/ip_reassembly/main.c | 12 +-- examples/ipsec-secgw/ipsec-secgw.c | 12 +-- examples/ipv4_multicast/main.c | 12 +-- examples/kni/main.c | 26 ++---- examples/l2fwd-crypto/main.c | 12 +-- examples/l2fwd-event/main.c | 12 +-- examples/l2fwd-jobstats/main.c | 12 +-- examples/l2fwd-keepalive/main.c | 12 +-- examples/l2fwd/main.c | 12 +-- examples/l3fwd-acl/main.c | 12 +-- examples/l3fwd-graph/main.c | 14 +-- examples/l3fwd-power/main.c | 13 +-- examples/l3fwd/main.c | 12 +-- examples/link_status_interrupt/main.c | 30 +++---- examples/multi_process/client_server_mp/mp_server/init.c | 14 ++- examples/multi_process/symmetric_mp/main.c | 12 +-- examples/ntb/ntb_fwd.c | 10 +-- examples/performance-thread/l3fwd-thread/main.c | 12 +-- examples/qos_sched/init.c | 10 +-- examples/server_node_efd/server/init.c | 15 ++-- examples/vm_power_manager/main.c | 14 ++- lib/librte_ethdev/rte_ethdev.c | 174 ++++++++++++++++++++++++++++++++++++++ lib/librte_ethdev/rte_ethdev.h | 76 ++++++++++++++--- lib/librte_ethdev/rte_ethdev_version.map | 4 + 42 files changed, 715 insertions(+), 282 deletions(-) v10 changes: * remove format string arg from rte_eth_link_to_str function * add rte_eth_link_speed_to_str function * add usage of rte_eth_link_speed_to_str in examples v9 changes: * remove rte_eth_link_printf function * add ETH_LINK_MAX_STR_LEN definition * add usage of ETH_LINK_MAX_STR_LEN in examples v8 changes: * rename rte_eth_link_strf to rte_eth_link_to_str * refactor rte_eth_link_to_str according to review comments * fix codestyle * fix commit message in 02 patch * fix compile error in ntb application * merge "app" and "doc" commits v7 changes: * fix meson build * change _strf function. now it does not fails in case of unknown specifiers like %d. it just copy it to target string. * remove invalid_fmt unit test. * add unknown specifier test. * fix codestyle v6 changes: * fix spelling in comments according to checkpatch warning v5 changes: * rename rte_eth_link_format to rte_eth_link_strf * add '\n' to default strings * update remaining examples. patch with subj 'examples: new link status print format' contains examples which have no maintainers. TBD: update remaining nic drivers with 'unknown' speed. It should be provided in separate patchset. 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.