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 13155A0528; Sat, 11 Jul 2020 20:58:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 590EF1D6BF; Sat, 11 Jul 2020 20:58:44 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 7BEB01D646 for ; Sat, 11 Jul 2020 20:58:41 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200711185840euoutp0237412c80e0285796b7736e9eea65e7b4~gx8XkVu920703807038euoutp02O; Sat, 11 Jul 2020 18:58:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200711185840euoutp0237412c80e0285796b7736e9eea65e7b4~gx8XkVu920703807038euoutp02O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594493920; bh=pH1sV+m0BHkyiaiC+xgG59dkm9+T14aI43iBEmNtwb8=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=IyiUG9Dt6SW96yt/Eji6rD0U1d8e5NVrjueMjalLSOJJRx2EgLwG6+c5KL8ETukSP SvKQyenyb3ADNzgefiE+djAoPdQQrLj/cWV05LInTDjEMKfNjkXckNTpQeJ2VCvXXv xTNMFgooIVAMkzzymVULFEqUSlSsmLxypRUu1DDE= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200711185839eucas1p2077bc8182879577537669b7d8cbfa430~gx8WoBu930429304293eucas1p2y; Sat, 11 Jul 2020 18:58:39 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id F1.5D.06318.FDB0A0F5; Sat, 11 Jul 2020 19:58:39 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200711185838eucas1p2dfcf582419820856e3913285c500cb03~gx8VbSaxh1607716077eucas1p2X; Sat, 11 Jul 2020 18:58:38 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200711185838eusmtrp2cec003943382e228ec88014825dd23a4~gx8VaPskF2830328303eusmtrp2F; Sat, 11 Jul 2020 18:58:38 +0000 (GMT) X-AuditID: cbfec7f5-371ff700000018ae-06-5f0a0bdfb780 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 02.F9.06017.EDB0A0F5; Sat, 11 Jul 2020 19:58:38 +0100 (BST) Received: from [106.109.129.29] (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200711185836eusmtip16122d270870d557167f912ad399c4665~gx8TZ4wMp1943919439eusmtip1D; Sat, 11 Jul 2020 18:58:36 +0000 (GMT) To: Thomas Monjalon Cc: dev@dpdk.org, v.kuramshin@samsung.com, 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 From: Ivan Dyukov Message-ID: <424d7367-e947-0d48-ff6e-879ae3268b27@samsung.com> Date: Sat, 11 Jul 2020 21:58:34 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <1652895.iZPJ0jMcVD@thomas> Content-Transfer-Encoding: 8bit Content-Language: ru-RU X-Brightmail-Tracker: H4sIAAAAAAAAA02Se0xTdxTH/d17e++lWnOtLD1xZjNNdD4iYjDuLFN8JzdxMUv2j2Mi1nED DIqmBSfbYphiJQUZFIKjmgo0C1iNpAryGD7abJRaHnNRB0MLMowThuUhKvIa5XYZ/33OOd9z fud78uNpdSO7jE9KTZMMqboULatkbjSNt6/vXqiMi/zNtRarWmwEe/12GnuKHrOYM5RFYYdj GzbWXlCgpTuTwjzLMIW1lWYW/+k5yeCLkVoKH930cTjifsbh2fbzBJ9N9tNYUjpKsN1Wo8Bx VwOLgclyBvPePiD4Q3UzQU/uMINF9XUETWYBhy5VcGh/9B6O9DQz6Ou8zuGVsXs01rRMESzw VBFsNc0otq8Q35b+pBDtjc8psbDsHi02dRZzYq7XRonOF3WUGLj1gBXzqh1EvNubQ4uX+96w nypjlFvipZSkY5JhQ/QhZeKvzhLqaDFz/EdLRia5SJsJz4OwCVyTjJkoebVQScD08GdKDl4S KPy+P1QZJfC4z6swk7C5jgJfPZELFQSc5wo4OQgQuNrrYYOqpcJeGCvO4oIcLqyBrtdWEmRa yGLB5NQEmRVWgy/bRgVZJURD7oBpTsMIK8FfcWZuzjvCfpix/MXImiXgLemb47DZ3gn7lEKe +T6cqjlPy6yBoVoXG1wIhBkenvzSwMpr74bpjkCIl0K/p5qTeTnM1F+kZP4WXl/7g5Obswn4 y0+HRNugeqCNC16MnnVT1bBBTu+Alnw3JR9yMXQMLpF3WAyWG+dC91VBtkktq7Vwx/t7KA0w NbEon2it84xZ55mxzjNj/f/ZUsI4iEZKN+oTJGNUqvR1hFGnN6anJkR8eUR/jcz+ad+0Z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cVv4pLkal7hw2xDFJOkec0ykIVEv64GKuzIcyQ Sh/5xlrHQYU8nI89KRj0oYaYKEG0IY37c6mk74wwvfs4o42hao06EILUgQGBAatBOUuexJbv V7ARvFE4IghHBcP/jmBkvnFocZOMOV8xaWYdMzg1L+t92O1ph60XHhk/L5yvsSzSFLUmNza6 XjrWz5R8fWoPObvTx9kU+15ozQ455Ls8Y1e+PJW/uMdpA9mcz/HmDW87t2hJlZknmh3B81x2 7SnjH9JV5X3n9OXwrk/nTuzenmH326po3zy7On5TidNv6Zl6+piSErW8ejlpEPl/X9fSvmQD AAA= X-CMS-MailID: 20200711185838eucas1p2dfcf582419820856e3913285c500cb03 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200711104429eucas1p167ce2c188865529b784a9c4e53fad2f6 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200711104429eucas1p167ce2c188865529b784a9c4e53fad2f6 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200711104414.15422-3-i.dyukov@samsung.com> <1652895.iZPJ0jMcVD@thomas> Subject: Re: [dpdk-dev] [PATCH v8 02/24] ethdev: add a link status text representation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 11.07.2020 14:27, Thomas Monjalon пишет: > 11/07/2020 12:43, Ivan Dyukov: >> +__rte_experimental >> +int rte_eth_link_printf(const char *const fmt, >> + const struct rte_eth_link *eth_link); >> > Maybe I missed your reply, > I still don't understand the need for this function. > > > > I used it few times in apps in this patchset.  It allows to avoid code duplication in examples. i.e. declare array, call rte_eth_link_to_str, call printf. It's simple and usefull function.  Why not?