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 705BEA051C; Fri, 26 Jun 2020 14:35:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 862821BF71; Fri, 26 Jun 2020 14:34:59 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by dpdk.org (Postfix) with ESMTP id 0E55E1BF6F for ; Fri, 26 Jun 2020 14:34:58 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Fri, 26 Jun 2020 14:34:56 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35C610C7@smartserver.smartshare.dk> In-Reply-To: <6b67ce84-92ee-550d-2fba-af8c4c1bb2aa@intel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [dpdk-dev] rte_ether_addr_copy() strange comment Thread-Index: AdZLsnRyP2kmA08SRjqa/FwrxpdX3wAAfXaQ References: <98CBD80474FA8B44BF855DF32C47DC35C610C4@smartserver.smartshare.dk> <6b67ce84-92ee-550d-2fba-af8c4c1bb2aa@intel.com> From: =?UTF-8?B?TW9ydGVuIEJyw7hydXA=?= To: "Ferruh Yigit" , Cc: "Olivier Matz" , "Harry Van Haaren" , "Konstantin Ananyev" Subject: Re: [dpdk-dev] rte_ether_addr_copy() strange comment 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" PiBGcm9tOiBkZXYgW21haWx0bzpkZXYtYm91bmNlc0BkcGRrLm9yZ10gT24gQmVoYWxmIE9mIEZl cnJ1aCBZaWdpdA0KPiB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IHNpbWlsYXIgcmVzdWx0LCBp LmUuIGZld2VyIGluc3RydWN0aW9ucyBvbiBib3RoIGljYyBhbmQgZ2NjLg0KDQpbMWMtbW9kaWZp ZWRdIGljYyAxOS4wLjEsIHN0cnVjdCBjb3B5DQoNCmNvcHk6DQogICAgICAgIG1vdmwgICAgICAo JXJzaSksICVlYXggICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIzE5LjEzDQogICAg ICAgIG1vdmwgICAgICAlZWF4LCAoJXJkaSkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIzE5LjEzDQogICAgICAgIG1vdnp3bCAgICA0KCVyc2kpLCAlZWR4ICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIzE5LjEzDQogICAgICAgIG1vdncgICAgICAlZHgsIDQoJXJkaSkg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIzE5LjEzDQogICAgICAgIHJldCAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIzI4LjENCg0K WzFkLW1vZGlmaWVkXSBpY2MgMTkuMC4xLCB3b3JkIGNvcHkNCmNvcHk6DQogICAgICAgIG1vdnp3 bCAgICAoJXJzaSksICVlYXggICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIzI0LjEy DQogICAgICAgIG1vdncgICAgICAlYXgsICglcmRpKSAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIzI0LjUNCiAgICAgICAgbW92endsICAgIDIoJXJzaSksICVlZHggICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAjMjUuMTINCiAgICAgICAgbW92dyAgICAgICVkeCwgMigl cmRpKSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjMjUuNQ0KICAgICAgICBtb3Z6 d2wgICAgNCglcnNpKSwgJWVjeCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICMyNi4x Mg0KICAgICAgICBtb3Z3ICAgICAgJWN4LCA0KCVyZGkpICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICMyNi41DQogICAgICAgIHJldCAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIzI4LjENCg0KVGVzdGluZyBmb3IgQVJNNjQgb24gZ29k Ym9sdCBnaXZlcyBhIHNpbWlsYXIgcmVzdWx0OiBtb3JlIGluc3RydWN0aW9ucyB1c2luZyB3b3Jk IGNvcHkgdGhhbiBzdHJ1Y3QgY29weS4NCg0KSW4gY29uY2x1c2lvbiwgSSB3aWxsIHByb2NlZWQg d2l0aCB0aGUgc3RydWN0IGNvcHkuDQo=