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 E1C15A00C5; Mon, 6 Jul 2020 22:37:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C95E91DCAC; Mon, 6 Jul 2020 22:37:56 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 6AF5F1DCAB for ; Mon, 6 Jul 2020 22:37:55 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200706203753euoutp0267e168a0cf13ddc86b50922bcdf43e32~fREjwsGZG2313123131euoutp02m; Mon, 6 Jul 2020 20:37:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200706203753euoutp0267e168a0cf13ddc86b50922bcdf43e32~fREjwsGZG2313123131euoutp02m DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594067873; bh=jPDOBi/0rQ9DMDFBR4rBAaAGT7hYGwasxI4Aw4xvJ1Q=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=K4SKZPMy0RPsr6gJmr9RLe/bChgMj1mciyzJjtUFVa9O1QnahkVVoUiXI0D9H05HF 2qvaZpef0Ase+3riSVRxvPCH+3SwnAn7q4TmzladMDnsk+gZDDepiGYKrNwM8txX01 5VnvPsNDP4Mz6lNvFoEI+Z8FH+lnIRY+t8EaJLzo= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200706203751eucas1p20bc4a4127045505dce73f31c7b941f79~fREip8kHh2126821268eucas1p2y; Mon, 6 Jul 2020 20:37:51 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 0C.B6.06318.F9B830F5; Mon, 6 Jul 2020 21:37:51 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200706203750eucas1p1e35c97b252eb46ba4eb95d79a2fa97b4~fREhgGFMF0771107711eucas1p1l; Mon, 6 Jul 2020 20:37:50 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200706203750eusmtrp17c3e1c570a831ad48a63bf7406cc0925~fREhfGoPO2965829658eusmtrp1k; Mon, 6 Jul 2020 20:37:50 +0000 (GMT) X-AuditID: cbfec7f5-38bff700000018ae-07-5f038b9fdf5f Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 5B.CF.06314.E9B830F5; Mon, 6 Jul 2020 21:37:50 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200706203748eusmtip1ac74d9faf7e645f450227369ea027c33~fREfuhi3I1791017910eusmtip1h; Mon, 6 Jul 2020 20:37:48 +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: Mon, 6 Jul 2020 23:37:14 +0300 Message-Id: <20200706203743.29416-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: H4sIAAAAAAAAA01SbUxTZxjNe+/tvZeGmksh+ohGQ5f5rWjQ5dmy6Fw2dxN+bBl/DFGw4g0Q oUqv9TMmDJV0bWUbsKlgKpYIghigForyES0JiAVNYQ6NiuiIKGMiFEQ+XEe5LPPfec9znnPO k7w8rXWxkXyq4YBkNOjTdKyaqW2ZuLv2gpVOXD/Yh1jZbif4vKeYxt78Jyxa35yk8EH5Fmxw n1dh7tNMCnNyhyl0X7awONibxeDrETeFjxu9HBZ0ZnE44unn8PS9QoL90wM0nivyE7xnr1Hh xK0bLA5NOxjMmbxP8CfXbYKttmEG86/XEcy2CPimrJTD4sdLcKT3NoPeh9c4rBjz0VjT/p7g L62VBDuyA6ovosTJoksqsbjhFSXmXfTRYsvD3zjR1manxOrXdZQ41HSfFXNc5US889xKi1f6 3rHfqePVn++R0lIPSsbozbvUKf5frcz+Z8sOu5s6mUxSudBCQngQNkLgDwcbxFrhMoF8xy4L Uc/gUQKZzhOs8vAT6C+5xVkIP7vhHIpV+FICtq4+SnmMEaioN3NBK1ZYAV6zfXYQIVSz4J7u poKDcOFTqGoeJ0HMCB/Dox9qZhc0M3zeuylO6bQUrlTdpINpIcJn8CKQpNRbAt0XRilFHgZt 5/qYIKZn5CdqCulgFggBHk75mmml6Vdwtn2NYhkOA62uOfvF4M2zMQo+BuPObk7ZNRPocZya E20B1193Zy+mhZVQeSNaobfCGXMZq9jPgwd/hykV5kFu7Zm5VA2Ys7WKWgc32zrnaID3U6EK LcLplnruZxJV8MEtBR/cUvB/bBGhy8kCySSnJ0tyjEE6tE7Wp8smQ/K6pH3pTjLzl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pn0Jcjd2/uPByvqEYdt+MaEStDSn+5hcEahUSbKqbpGxGRYWWg fF2bc7dCHq9NOywYDRqjOUkQG1GU+8vTOHi6zuBuYbJJw0Vxaojm1JHqyJWgnCG3sA07FWyC 1iTsF4QDgvHvHCXzDU5HKZNbZ4VdyNY/1spnlMdl5QbV+efec/n5xA6b583f8LNn5Nnur3ld /jpdTWdayblTttAFGi6lYXbr8iGjD4xd29SVsXDjlfa7qPZg0PX095Zww68t51P35XWtyS+N mbrecfx8vg9FHL0D1LuQbYNTgp4vPji+1KD2j9hp2Z8199NguJIWE7VcGDaK2t+m+tE3TQMA AA== X-CMS-MailID: 20200706203750eucas1p1e35c97b252eb46ba4eb95d79a2fa97b4 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200706203750eucas1p1e35c97b252eb46ba4eb95d79a2fa97b4 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200706203750eucas1p1e35c97b252eb46ba4eb95d79a2fa97b4 References: <20200427095737.11082-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v6 0/25] 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 | 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 +--- 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 | 169 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/librte_ethdev/rte_ethdev.h | 74 +++++++++++++++++++++++++++++++++++++++------- lib/librte_ethdev/rte_ethdev_version.map | 4 +++ 42 files changed, 687 insertions(+), 282 deletions(-) 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.