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 27ACEA0526; Fri, 10 Jul 2020 09:02:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 07FD11DB11; Fri, 10 Jul 2020 09:02:39 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 1E5351DAF6 for ; Fri, 10 Jul 2020 09:02:37 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200710070236euoutp017986fba838ece110a36ad63799de6e45~gUh3a8aoY1892318923euoutp01b; Fri, 10 Jul 2020 07:02:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200710070236euoutp017986fba838ece110a36ad63799de6e45~gUh3a8aoY1892318923euoutp01b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594364556; bh=veeNHd3TmN3ylYaeZqavwlpYlzh9ZD8tSIkp3fy3UqA=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=bRQoFkYiYDFMTCuMybQpWdK596OupREOUIDjacZquQ8pY/ZdVdDMR7NM9qDPpGySG PSuwYwTxGMlTvSe6ygsT4GDQBfz+Omp218pjwnGZ+rDG8atDMFPUh4fn7WUNNSlNWV T+TcEjdQDFqMZQQf+nAiIecinD1CB3sIhIrWmSyg= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200710070235eucas1p108e253390bc1b292860b8d5beafd5faa~gUh3De_BH1964019640eucas1p1W; Fri, 10 Jul 2020 07:02:35 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id B9.28.05997.B82180F5; Fri, 10 Jul 2020 08:02:35 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200710070235eucas1p12961d36cdc8abf56f2ab2987fef8276b~gUh2okQX20907109071eucas1p17; Fri, 10 Jul 2020 07:02:35 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200710070235eusmtrp267529edc2126087736c4f8156d784e08~gUh2ncvlX2959129591eusmtrp2a; Fri, 10 Jul 2020 07:02:35 +0000 (GMT) X-AuditID: cbfec7f4-677ff7000000176d-ee-5f08128b18f0 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id FF.E3.06017.B82180F5; Fri, 10 Jul 2020 08:02:35 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200710070233eusmtip1f950398b35bcd94c956a67a62e8de8c2~gUh02no3L1465514655eusmtip1B; Fri, 10 Jul 2020 07:02:33 +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: Fri, 10 Jul 2020 10:01:58 +0300 Message-Id: <20200710070226.6045-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: H4sIAAAAAAAAA01SfUxTdxTN773X9x6NJc8nkRs0GJpsY27D4Ue8mmWi0eQt/rNsi8mWOej0 CUa+bAEVY4IOgQAWBSaxEGQQEVHp0EKhoHxEBFYBURFQVKKNCH4XyBRbK/XV6H/nnnvPOfcm l6dFCxvEb49PkvXxulgtq2bqL7/u+yZH5CO/dewPR/OVUoL371bQOFp4h8WcF+kUDlWvwWZr iQrz76VRaMx/SaG1KpvFJ6MHGHzmtFI4csHOoenaAQ6d7WMcHuorJjjmmqDxWNkkwb7SOhW+ brOx+NxVzqBxZoBgnqWLYGfuSwYLGxsIZmQL+OLUSQ4rRoLROdrFoH34PIdnpvtprLviJnik 00ywJ8OjigiRZspOqKSK5nFKKvinn5YuDx/lpNzuUkqqfdZASc8vDrCS0VJNpP/u59DSaccr 9kf1b+rvtsqx21Nk/ZLvo9QxA5W36cTrobvT3Z+nkfGgbOLHg7Achvv6STZR86JQReBMz1mV UkwRqKwaYJVikkDb0fPcB4lnsNcnOUngxMi0TzJNoL5lkPJOsUIo2LNKKW8jQKhlwepSGvOE VdB059R7K0b4DNJLbs3yPK8REKYyw5SERXD631baS/sJq+GhZ4uXFoVgGDw+9d5FI8yF7mMO xovp2fG/6oppbxQIHh5mKkZYxWc9TDS2EAXPg4lOi++CheBpPE4peC/8f26QU8RZBO6WH/QN rQHL417OuwQtfAlm2xIvBGEt2DJ3KtAfhp7OVVbwh/z6IlqhNZCVISoeWmjtvuajAdxv5ii0 BLkPurjDJMT0yS2mT24xfUwtI3Q1CZSTDXHRsmFpvLwrzKCLMyTHR4dtSYg7R2Z/2f62c6qB 2Fx/thOBJ9o5mig3GymqdCmGPXH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xN0WH8IM qQtTL3vg36pRJ/K79wh2m9nuTBVEH4oOPnmE1IYn2IIjtDrMhmiDCWIMpihT1ALQjVdnsPVx GjaJdwgpgrBdsP/NEYxK60KzKnZm09aOUlfv1Epj081F7ghtbcjrlAnp3mcTvVtfbxgImO+U hLtaPhQfyzrf0O2ui7i1d/aU2ivLY6WHuknelDusyfPuUJyU7i5YOauotTmtxufP2JRYd3zC 3gOf+ZDeparDuDxvbZenX5XNNqz38sMrVq+q3HgqOu5thLNcrdJRYjJvmE3aRf43gs1DIkwD AAA= X-CMS-MailID: 20200710070235eucas1p12961d36cdc8abf56f2ab2987fef8276b X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200710070235eucas1p12961d36cdc8abf56f2ab2987fef8276b X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200710070235eucas1p12961d36cdc8abf56f2ab2987fef8276b References: <20200427095737.11082-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v7 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(-) 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.