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 A168CA04C7; Tue, 15 Sep 2020 21:07:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3970D1C0C6; Tue, 15 Sep 2020 21:07:42 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 01C331C0C2 for ; Tue, 15 Sep 2020 21:07:40 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200915190740euoutp02e9cedca4b79b1408d8506d3856cc1cbc~1CpDryTvT0660106601euoutp02h; Tue, 15 Sep 2020 19:07:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200915190740euoutp02e9cedca4b79b1408d8506d3856cc1cbc~1CpDryTvT0660106601euoutp02h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1600196860; bh=ATjIr0qoFkILbQcMg2GjMKs0H30ALh/wO09DRw3RcnU=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=P289TtV+9wjCRN7igkwpFeRDd+mVH07H8Ykqxo5y/Gxuw79jjdGU2tF68U804teOv H0LQmrMyaYjBP6Ck98xiRtYf8i6DwcrfWpFRvF+ylXCNweQiVUkLOb5LLSQ7Px/mHL VM3/6ZJ8kcslsEQO56gcrTVaFN+blN5jQabJhze4= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200915190739eucas1p28b89eba121ad3c64e74ed69a5b2f8819~1CpC0pMzM2574925749eucas1p2b; Tue, 15 Sep 2020 19:07:39 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 61.46.06318.BF0116F5; Tue, 15 Sep 2020 20:07:39 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200915190738eucas1p12fd2a456763000d58be9380e6c614a2f~1CpCLdJxk3097130971eucas1p1N; Tue, 15 Sep 2020 19:07:38 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200915190738eusmtrp10561426a9906728903024569769e46cb~1CpCKaItU2872428724eusmtrp17; Tue, 15 Sep 2020 19:07:38 +0000 (GMT) X-AuditID: cbfec7f5-38bff700000018ae-49-5f6110fbd9d7 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 63.DB.06314.AF0116F5; Tue, 15 Sep 2020 20:07:38 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200915190736eusmtip21c73f1aa8197800466b74796fb767ec3~1CpAZEV-Y1759817598eusmtip2H; Tue, 15 Sep 2020 19:07:36 +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: Tue, 15 Sep 2020 22:06:55 +0300 Message-Id: <20200915190728.18143-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: H4sIAAAAAAAAA02SWUwTURSGc2emM0NDcagknijR2MQNtYj6cFziFh8mxgeXGBM3rDoBFSpp BZUYJWKwQayKO5haQVyqBtFSwBRT+iBLVQKmigEVjUJUdqwLtGLL4PL2nf/85/7nJJen1Q52 LL9Tv1cy6HVJGlbJOB7/rJ85KOjiZ/kqeCx+YiH4/k0hja1nX7N4vOcohU22xegsu6zA3LcZ FJpzeyksu5nNYkfrEQa7+soobKn0cJjXeITDPnc7hyfq8wm2+z/TeMnaT7DeUqrAn1UPWez2 FzBoHvASPGmvIVid08vg2YpyglnZAvbcusFhYct47GutYdDz6gGHd3wNNJY+CRA8XV1M8GnW kGLJRHHAWqQQC52fKPHM1QZafPzqPCfm1FoosaSrnBK7H3lZ0Wy3EbHu/XFavP3hB7tKuUG5 cIeUtDNNMsQu2qpMdHZXUimV0/dfGcpnMkhzdDYJ40GYC4GmZibEauEmgY89+2X+SsBnD7Iy yP0Eipx9zN+BxjZWbtwg8OvESYVc+Aj0mqqGXawwFTwmCxVqRAklLJT5X1KhxmhhAXzMcpMQ M8IkKHC1cyFWCfOg0XSRliMmwO17riDzfJgwH9qGtssrjYeXV75Ssj0Sai99GM6ig/bM0nw6 lAXCDx6KS14o5HeWQ2fdUSLzaPhcbedkjgbPmRxGHjhG4LTjAScXpwhk5neOuBaD/cszLrQF LUyD4oexsrwUihosw8uBEAFNnZHyEhGQ67gwIqvAlKWW3Rpw1TaOyACBwXBZFqHzWhd3ikzM +++avP+uyfsXayW0jYyRUo3JCZJxjl7apzXqko2p+gTt9j3J90nwN3t+VfvKySP/NjcReKIJ V1mbt8arFbo044FkNwGe1kSpl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N0DoRlpNJP vrnZuVch388nHRaMhhijOUEQHSjMc2UO6T871uB5Q70pRhWmCge1KjwkPGQNKOfILUzDbgUT x5uEA4KQKBj/9hEyH/9kdOR75vSGJSEzomosOQ/U1Ij7Y5Trgb6yc2+JLbBj2yrn1lT20q5l 2uHoj6Xa3sURz49yUfZpeZt3LG9KDQjYpwlec2zRZX5wUW5uJJtur+/VrKywLVTi8pQy9TwX 4bDlbMsyU5okCEiK1h+Fpy1bArtfdgWZr6ON916zDj8qUkmJWl61gjSK/B+BDsmoTgMAAA== X-CMS-MailID: 20200915190738eucas1p12fd2a456763000d58be9380e6c614a2f X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200915190738eucas1p12fd2a456763000d58be9380e6c614a2f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200915190738eucas1p12fd2a456763000d58be9380e6c614a2f References: <20200427095737.11082-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v11 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 | 11 ++--- app/test-pipeline/init.c | 11 ++--- app/test-pmd/config.c | 9 ++-- app/test-pmd/testpmd.c | 12 ++--- app/test/Makefile | 3 ++ app/test/meson.build | 2 + app/test/test_ethdev_link.c | 169 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 | 6 ++- examples/ioat/ioatfwd.c | 14 +++--- examples/ip_fragmentation/main.c | 13 ++---- examples/ip_pipeline/cli.c | 4 +- examples/ip_reassembly/main.c | 13 ++---- examples/ipsec-secgw/ipsec-secgw.c | 13 ++---- examples/ipv4_multicast/main.c | 14 +++--- examples/kni/main.c | 27 ++++------- examples/l2fwd-crypto/main.c | 13 ++---- examples/l2fwd-event/main.c | 13 ++---- examples/l2fwd-jobstats/main.c | 13 ++---- examples/l2fwd-keepalive/main.c | 13 ++---- examples/l2fwd/main.c | 13 ++---- examples/l3fwd-acl/main.c | 13 ++---- examples/l3fwd-graph/main.c | 15 ++---- examples/l3fwd-power/main.c | 14 ++---- examples/l3fwd/main.c | 13 ++---- examples/link_status_interrupt/main.c | 30 +++++------- examples/multi_process/client_server_mp/mp_server/init.c | 15 +++--- examples/multi_process/symmetric_mp/main.c | 13 ++---- examples/ntb/ntb_fwd.c | 11 +++-- examples/performance-thread/l3fwd-thread/main.c | 13 ++---- examples/qos_sched/init.c | 12 ++--- examples/server_node_efd/server/init.c | 15 ++---- examples/vm_power_manager/main.c | 14 ++---- lib/librte_ethdev/rte_ethdev.c | 37 +++++++++++++++ lib/librte_ethdev/rte_ethdev.h | 52 +++++++++++++++++---- lib/librte_ethdev/rte_ethdev_version.map | 4 ++ 42 files changed, 439 insertions(+), 272 deletions(-) v11 changes: * 0 Mbps => None * Invalid speed => Invalid * Change code style of rte_eth_link_speed_to_str 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.