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 C5BA3A0528; Sat, 11 Jul 2020 12:44:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E31A61D977; Sat, 11 Jul 2020 12:44:26 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 8A1981D924 for ; Sat, 11 Jul 2020 12:44:25 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200711104424euoutp01588ee86b9a68b92b0c283fa487ad1389~grM0IRh4k0814708147euoutp01T; Sat, 11 Jul 2020 10:44:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200711104424euoutp01588ee86b9a68b92b0c283fa487ad1389~grM0IRh4k0814708147euoutp01T DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594464264; bh=UUay73T7ZdVSyNLchGHUM3sZ/i2VBQoeOtDyicyFnME=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=vU0JLkhNWw0CAl3Fgzgm++aaCmON4OlRQG1GpKUhNMwVL6+cI/aIwdBOtQb4jADwF T2oGWUZDa7sazqoOXXd4GnGXQD8bO5bZ3vIZ6nyyWavfderH/32TupKtWV+981keBz QoM/DPluN6vbzWUWH7jyhWDsb4FozqW+v+VzM7NI= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200711104423eucas1p2b021766b60c680258f8da78e59433199~grMzM4UKU2330823308eucas1p2b; Sat, 11 Jul 2020 10:44:23 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 7B.77.06318.708990F5; Sat, 11 Jul 2020 11:44:23 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200711104422eucas1p2e494c0d91b82c8ab69255d3238d0f36f~grMx5H5-k1737917379eucas1p2F; Sat, 11 Jul 2020 10:44:22 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200711104422eusmtrp124b932f28bee5d36c8c9054122c8934c~grMx4GPz32954729547eusmtrp1z; Sat, 11 Jul 2020 10:44:22 +0000 (GMT) X-AuditID: cbfec7f5-371ff700000018ae-30-5f099807e64d Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id A9.07.06314.608990F5; Sat, 11 Jul 2020 11:44:22 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200711104420eusmtip16ded4a9ebe84f279814b1474b4aa582b~grMwIYG2r0946309463eusmtip1v; Sat, 11 Jul 2020 10:44:20 +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: Sat, 11 Jul 2020 13:43:47 +0300 Message-Id: <20200711104414.15422-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: H4sIAAAAAAAAA02SbUxTZxSA99739t7basmlunhkC4s1OHVRNMzloATcQsw1i4luPzRLBK94 Bzio2IrObSaETYKIbCB+gUEsIShoEGwpIFZsjHxUIWoMYBAYQQwwQfmIwMCOcmvmv3Oe87zn I3kFaqjiAoR40yHFbJITjJyOrbo/1bKGP6+NXjfkMWL5gwKCvV1FFHtyn3N48vUfDLaXRmCd 46IGc7pTGMzKecOg40oGh//0pLI4POpgsPO2m8e8x6k8jrpe8niqNZ/gy5lBihcKxwi2Ftg1 OHW3lsORGSuLWdNPCf5payTYkPmGxdyaaoJpGSK+vlrCY1FnII72NLLo7rjJ47WJRxTtD2YJ ZjeUE3yY5tFsXiZNFxZrpKK6AUY6ffkRle53nOWlzKYCRqoYrmakEedTTsqylRKpufcklcr6 Jrntuh90YfuUhPjDijk4fI8u7tZ4KpvU/PnP+dn9bAqpWppBtAKIX4K99w6TQXSCQbxC4ERq DlWTcQLP7k0SNRkj0J9to++f1E/d8VklBKZv3vUlEwSG7N2M1+LEleBOL5hvvFis4MAx0zZf WCRuhG5H61xfQWDFILh6e7UX68VQaDlxSqNO+AzKbtRTr6Kd0/s9MV5sEAOh7dI4o+r+0HSh j/XGdE7/3Z4/vwOIHgGeN+dyap9IKHNaWTVeBIMNNl6NPwX36Uwf/xXeVrbx6uN0Al3W4z4p AmxDLbx3CSqugvLaYBV/Ddl/jzFeDKIftL/yV3fwg5yqc1TFekhPM6i2EeqbHvswwOy/C1Us QePgMP2LLMv74Ji8D47J+39sIaGlZImSbEmMVSwhJuXIWoucaEk2xa6NOZBYSeZ+s/tdw0Q1 cc7sdRFRIMaF+kJZiDZo5MOWo4kuAgI1L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oFjr1IRIyQfEQ36KIMpXpSaUZjzyRzs7xutd64wwRilCdNoIVyjDdGGLAOVnyKTa9qt5GIF o3hQFA+Jhr85ivXwT0HzHd2mtQfnewnpv85nlD7aeqRge+Sm1BtHMz4psvggv6k91oJ1PwL6 fKOHNn54OteywZ5i3REUuuDYttcBJ3P2B7XMUq5/ZqmIDE5qb62aru1KXoefNSTtiIx44X/V +3XJ2njv67mFTakmS1uXz+7OhhPFPwbHDxcEdvvOeCdqB/0islS0FCdoFmGDJPwGZzob1E0D AAA= X-CMS-MailID: 20200711104422eucas1p2e494c0d91b82c8ab69255d3238d0f36f X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200711104422eucas1p2e494c0d91b82c8ab69255d3238d0f36f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200711104422eucas1p2e494c0d91b82c8ab69255d3238d0f36f References: <20200427095737.11082-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v8 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(-) 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.