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 B063BA00C5; Mon, 6 Jul 2020 22:26:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8D2BE1DABC; Mon, 6 Jul 2020 22:26:42 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 28A701D99E for ; Mon, 6 Jul 2020 22:26:40 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200706202640euoutp01e5be72a8ab340e161cdc00db6f2036cb~fQ6w-iZ-n2593425934euoutp01d; Mon, 6 Jul 2020 20:26:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200706202640euoutp01e5be72a8ab340e161cdc00db6f2036cb~fQ6w-iZ-n2593425934euoutp01d DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594067200; bh=JUa58zZHHGCAxhiDpiJwvos7GsrQnToE8UN/cWDpk1Y=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=okTljyh4DGz1fyjhOHcAMksFaN1iJuCAZhyrXtNU1EjvfaNmJyQ0PThX0SZ4Mf7dn A6ae16u9m8n71y8ByHB6YuscXV9lD7nQUCKFjWbZXrnHQTd1e5NljdyoHoYLqfVatL yqicMDxN9qXo03tTNkL9ugDbydQvpVuy8HUxzpGQ= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200706202639eucas1p264e28831cb0140f4d94adfc852edbe98~fQ6wsFIo90115901159eucas1p2Z; Mon, 6 Jul 2020 20:26:39 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 1F.86.06318.FF8830F5; Mon, 6 Jul 2020 21:26:39 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200706202639eucas1p1a311b447521d1128a00483e1ca2f482a~fQ6v682OU0814308143eucas1p1g; Mon, 6 Jul 2020 20:26:39 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200706202639eusmtrp2819935492238f6527d25456b4b4d220f~fQ6v56Iun3205132051eusmtrp2j; Mon, 6 Jul 2020 20:26:39 +0000 (GMT) X-AuditID: cbfec7f5-371ff700000018ae-04-5f0388ff88f2 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id DD.9F.06314.EF8830F5; Mon, 6 Jul 2020 21:26:38 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200706202637eusmtip1a8d9d7c4c81fa5944de432ddabeb8f28~fQ6uJf-HD1500415004eusmtip1Q; Mon, 6 Jul 2020 20:26:37 +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:25:50 +0300 Message-Id: <20200706202626.28628-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: H4sIAAAAAAAAA02SbUxTZxTH89zn9t5LtexSTDyicaMJzpkoEmc8Uxx78cP1i1my+MXEsTu5 QSOlrhXULSaEaYegqIzpwKWW1iniC6LldaismVaoyCDRQtJBJSriEJE3wdV13N2a+e2c//md l39yBGqs4xKEbdk7FWu2nGXi9GzdzemOpZECmr68/fFSrL7tINjf66YYKv2Tw6KRfQx2V6Vh c/3POizpy2OwuOQ5g/WVhRwOhfJZHB6tZzB41c9jeVc+j6PeAR4PdZwgOBB+QrHMOUaww1Gr w+nfmjh8FnaxWPzyLsHDnlsEfQefs1ja2EDQXijiyNkzPLqDC3E0dItFf88VHs9PdFKsvf2K 4FFfNcF2e0T3UaL00vmLTnI3DzLSDxWdVLrZc4yXDrY6GKlmuIGRnl27y0nFnioitfUXUenc gynuM/0mfWqGkrUtV7Emf/ilfuuPwU6646dFu5uCfUweGYNCEiOA+D5cvHCELSR6wShWEjjm dhMtGSdQ8/sNXkvGCJztqWNet5x6NMVphTMEDhVdilITBE5N7+dUihMXg7/AwaiFOWINB/Xh wEwiCPHiBxBujlUZVkyCfl+EqLFhRvbcn+S1DW/DuUstVMVjxNXwKLJFlY3iQgicHGc0PA5a yx6wakxn8O9qT1B1FYhTArhc96g2Zx28GIxwWhwPT3ye6PwFEGk8GXXzLby4HOC15gICva79 USgNPH/d4dUjqPgeVDcla/LHEHIN/WcFxFjofhqn3RALJXXHqSYboMBu1GgTtLR2RWWAV3/P 1mQJAo8nuSMksfwNM+VvmCn/f62T0CoyV8mxmTMV24psZdcym2y25WRnLttiMV8mM9/s/8c3 0UCuhb/yElEgptmGkEDTj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hsSJMtqbV sV0u26ndf0AwGTWmtBRBbEKx/i/zcPiMJKN/halmjTpWHQfx6riYuJjloJgls3APt8o5ndYs 7BaEPYLpb45ig8Iz0KWS0JEzYZ6WHT/nFbhUhSO6NbrsKxeORA7MrFo79miIr/bVDcxPfLA+ apHnBdFHJQy1VbYsTvZ+XL/r3h3b5HPfj+/OCF965pzhLFXhB1dINKM6o2dbZ3src51UdpL7 R9HgxhuRM6I6ezR0xMGCoongI3TK+dJ16/auLe/8vL0tR0GLeq16MTaJ2l8c2VJlTQMAAA== X-CMS-MailID: 20200706202639eucas1p1a311b447521d1128a00483e1ca2f482a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200706202639eucas1p1a311b447521d1128a00483e1ca2f482a X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200706202639eucas1p1a311b447521d1128a00483e1ca2f482a References: <20200427095737.11082-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v5 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(-) 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.