From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) by dpdk.org (Postfix) with ESMTP id 87A963B5 for ; Fri, 20 Jan 2017 20:12:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=30632; q=dns/txt; s=iport; t=1484939549; x=1486149149; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=a/WPwBKjwNU7oPBbvV0BgDY8DMhDKuW7We+eiwizowc=; b=OXXPYrM3COFz/zT8tSs0m5FRbRUZ+DgkpCU0PbjdlBXLwcnGQwBvp3YU viG3u7jbGGr2yHIp7xF2VikqleBXTQiTH1MCBT6Zns/XM/1EgQbaMB+VS ALvZ2cFg4zSkpaNAY7P8XdB04Qg2YUPviCYfm4+d9BahkocsFZu2Iv7CI M=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AVAgCaYIJY/40NJK1eGQEBAQEBAQEBA?= =?us-ascii?q?QEBBwEBAQEBgm9OAQEBAQEfYIEJB4NMigiRZh+TH4IPggyGIgIagXs/FAECAQE?= =?us-ascii?q?BAQEBAWMohGkBAQEEIwRSEAIBCA4DAwECIQcDAgICMBQJCAIEDgUbiGmvYIFrO?= =?us-ascii?q?iuKFwEBAQEBAQEBAQEBAQEBAQEBAQEBAR2IUAiCY4RgCRaCUC2CMQWVN4YRAZF?= =?us-ascii?q?mgXeFD4loSIdWilUBHziBRRUYMgGGJHOIHIENAQEB?= X-IronPort-AV: E=Sophos;i="5.33,259,1477958400"; d="scan'208,217";a="197743640" Received: from alln-core-8.cisco.com ([173.36.13.141]) by rcdn-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 20 Jan 2017 19:12:28 +0000 Received: from XCH-RTP-006.cisco.com (xch-rtp-006.cisco.com [64.101.220.146]) by alln-core-8.cisco.com (8.14.5/8.14.5) with ESMTP id v0KJCRfQ008445 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 20 Jan 2017 19:12:27 GMT Received: from xch-rtp-008.cisco.com (64.101.220.148) by XCH-RTP-006.cisco.com (64.101.220.146) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 20 Jan 2017 14:12:26 -0500 Received: from xch-rtp-008.cisco.com ([64.101.220.148]) by XCH-RTP-008.cisco.com ([64.101.220.148]) with mapi id 15.00.1210.000; Fri, 20 Jan 2017 14:12:26 -0500 From: "Steve Shin (jonshin)" To: Igor Ryzhov CC: "dev@dpdk.org" , "ferruh.yigit@intel.com" Thread-Topic: [dpdk-dev] [PATCH] lib/librte_ether: error handling on MAC address replay Thread-Index: AQHScoSDvjirz66N/USICwkqaeCKdKE//yIAgAC5jgD//7pEgIABKkyA///tsQA= Date: Fri, 20 Jan 2017 19:12:26 +0000 Message-ID: References: <20170119184721.22348-1-jonshin@cisco.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/f.1a.0.160910 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.128.224.23] MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH] lib/librte_ether: error handling on MAC address replay 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: , X-List-Received-Date: Fri, 20 Jan 2017 19:12:30 -0000 RGVhciBJZ29yLA0KDQpUaGF0IG1ha2VzIHNlbnNlIHRvIHVzZSBtYWNfYWRkcl9zZXQoKSBmb3Ig ZGVmYXVsdCBNQUMgYWRkcmVzcyByZXBsYXkuDQoNCkFzIGRlZmF1bHQgTUFDIGlzIGtl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9saWJydGVfZXRoZXIv cnRlX2V0aGRldi5jDQogICAgQEAgLTk1MSwxMCArOTUxLDEyIEBAIHJ0ZV9ldGhfZGV2X2NvbmZp Z19yZXN0b3JlKHVpbnQ4X3QgcG9ydF9pZCkNCiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRp bnVlOw0KDQogICAgICAgICAgICAgICAgLyogYWRkIGFkZHJlc3MgdG8gdGhlIGhhcmR3YXJlICov DQogICAgLSAgICAgICAgICAgaWYgICgqZGV2LT5kZXZfb3BzLT5tYWNfYWRkcl9hZGQgJiYNCiAg ICAtICAgICAgICAgICAgICAgICAgIChkZXYtPmRhdGEtPm1hY19wb29sX3NlbFtpXSAmICgxVUxM IDw8IHBvb2wpKSkNCiAgICAtICAgICAgICAgICAgICAgICAgICgqZGV2LT5kZXZfb3BzLT5tYWNf YWRkcl9hZGQpKGRldiwgJmFkZHIsIGksIHBvb2wpOw0KICAgIC0gICAgICAgICAgIGVsc2Ugew0K ICAgICsgICAgICAgICAgIGlmICAoKmRldi0+ZGV2X29wcy0+bWFjX2FkZHJfYWRkKSB7DQogICAg KyAgICAgICAgICAgICAgICAgICBpZiAoZGV2LT5kYXRhLT5tYWNfcG9vbF9zZWxbaV0gJiAoMVVM TCA8PCBwb29sKSkNCiAgICArICAgICAgICAgICAgICAgICAgICAgICAgICAgKCpkZXYtPmRldl9v cHMtPm1hY19hZGRyX2FkZCkoZGV2LCAmYWRkciwgaSwgcG9vbCk7DQogICAgKyAgICAgICAgICAg ICAgICAgICBlbHNlDQogICAgKyAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlOw0K ICAgICsgICAgICAgICAgIH0gZWxzZSB7DQogICAgICAgICAgICAgICAgICAgICAgICBSVEVfUE1E X0RFQlVHX1RSQUNFKCJwb3J0ICVkOiBNQUMgYWRkcmVzcyBhcnJheSBub3Qgc3VwcG9ydGVkXG4i LA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBvcnRfaWQpOw0KICAg ICAgICAgICAgICAgICAgICAgICAgLyogZXhpdCB0aGUgbG9vcCBidXQgbm90IHJldHVybiBhbiBl cnJvciAqLw0KICAgIC0tDQogICAgMi45LjMNCg0KDQoNCg==