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 09A33A052A; Fri, 10 Jul 2020 15:06:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 629901DD5C; Fri, 10 Jul 2020 15:06:15 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id D61851DD51 for ; Fri, 10 Jul 2020 15:06:12 +0200 (CEST) IronPort-SDR: Pd8dmwYLsLfmVZwM2t8iRf002tRN78DEIwsf7fj8LI8mcRRtzDU89c4t9EM2KlYrE+lMRzmCi0 TwovB3tVQYHw== X-IronPort-AV: E=McAfee;i="6000,8403,9677"; a="128259367" X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="128259367" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2020 06:06:06 -0700 IronPort-SDR: 8/0n7xwYLkJ6eLoQdesCP1DofR/Zcu6H4miBw/PC6YIXfa4vEK6UXVJmxygEb9NNfe5mWG0mT3 bx0dRUw2a8Zg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="389522613" Received: from irsmsx604.ger.corp.intel.com ([163.33.146.137]) by fmsmga001.fm.intel.com with ESMTP; 10 Jul 2020 06:06:03 -0700 Received: from irsmsx606.ger.corp.intel.com (163.33.146.139) by IRSMSX604.ger.corp.intel.com (163.33.146.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 10 Jul 2020 14:06:03 +0100 Received: from irsmsx606.ger.corp.intel.com ([163.33.146.139]) by IRSMSX606.ger.corp.intel.com ([163.33.146.139]) with mapi id 15.01.1713.004; Fri, 10 Jul 2020 14:06:03 +0100 From: "Yigit, Ferruh" To: "i.dyukov@samsung.com" , "dev@dpdk.org" , "v.kuramshin@samsung.com" , "thomas@monjalon.net" , "david.marchand@redhat.com" , "arybchenko@solarflare.com" , "Zhao1, Wei" , "Guo, Jia" , "Xing, Beilei" , "Yang, Qiming" , "Lu, Wenzhuo" , "mb@smartsharesystems.com" , "stephen@networkplumber.org" , "Chautru, Nicolas" , "Richardson, Bruce" , "Ananyev, Konstantin" , "Dumitrescu, Cristian" , "Nicolau, Radu" , "akhil.goyal@nxp.com" , "Doherty, Declan" , "skori@marvell.com" , "pbhagavatula@marvell.com" , "jerinj@marvell.com" , "kirankumark@marvell.com" , "Hunt, David" , "Burakov, Anatoly" , "Li, Xiaoyun" , "Wu, Jingjing" , "Mcnamara, John" , "Singh, Jasvinder" , "Marohn, Byron" , "Wang, Yipeng1" Thread-Topic: [PATCH v7 02/25] ethdev: add a link status text representation Thread-Index: AQHWVogvDlcKaYzFNkSMxdX5eqTxPakAyHKg Date: Fri, 10 Jul 2020 13:06:02 +0000 Message-ID: References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200710070226.6045-1-i.dyukov@samsung.com> <20200710070226.6045-3-i.dyukov@samsung.com> In-Reply-To: <20200710070226.6045-3-i.dyukov@samsung.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.2.0.6 dlp-product: dlpe-windows dlp-reaction: no-action x-originating-ip: [163.33.253.164] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v7 02/25] 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" T24gNy8xMC8yMDI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