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 E78CBA0350; Thu, 25 Jun 2020 17:46:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A836DE07; Thu, 25 Jun 2020 17:46:00 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by dpdk.org (Postfix) with ESMTP id D76D32AB for ; Thu, 25 Jun 2020 17:45:59 +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: Thu, 25 Jun 2020 17:45:58 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35C610C4@smartserver.smartshare.dk> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: rte_ether_addr_copy() strange comment Thread-Index: AdZLB7gujZzayIBwQtC2vJiUOaF/JQ== From: =?UTF-8?B?TW9ydGVuIEJyw7hydXA=?= To: Cc: "Olivier Matz" Subject: [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" VGhlIGZ1bmN0aW9uIHJ0ZV9ldGhlcl9hZGRyX2NvcHkoKSBjaGVja3MgZm9yIF9fSU5URUxfQ09N UElMRVIgYW5kIGhhcyBhIGNvbW1lbnQgYWJvdXQgImEgc3RyYW5nZSBnY2Mgd2FybmluZyIuIEl0 IHNheXM6DQoNCnN0YXRpYyBpbmxpbmUgdm9pZCBydGVfZXRoZXJfYWRkcl9jb3B5KGNvbnN0IHN0 cnVjdCBydGVfZXRoZXJfYWRkciAqZWFfZnJvbSwNCgkJCQkgICBz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