From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from alln-iport-2.cisco.com (alln-iport-2.cisco.com [173.37.142.89]) by dpdk.org (Postfix) with ESMTP id E71482E8A for ; Fri, 20 Jan 2017 03:32:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=19618; q=dns/txt; s=iport; t=1484879567; x=1486089167; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=xhOj1bLcDMqVdzEgND7BWTLXZX4hMIvIzZu8GCl8aOE=; b=LXpizYXqunSG8U0CuLYH81CwDLG+XqLXYxMszC+kim1yecYT7x2H49Q9 +kRqLWjtyVmkCopWxYqOHxaUN6NO1h01GsceebSPu6KXuyICtSwcl0uyh JrMaGcJWhuGsJ21LbDdVmFx+BqiSlk8C2f6PSAz6BLNYI4nRf5ULIBXan 0=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CkAQBudoFY/5JdJa1eGQEBAQEBAQEBA?= =?us-ascii?q?QEBBwEBAQEBgm9QAQEBAQEfYIEJB4NMigiSBJABgxyCD4IMhiICGoFnPxQBAgE?= =?us-ascii?q?BAQEBAQFjKIRpAQEBBCMEUhACAQgOAwMBAigDAgICMBQJCAIEDgUbiGivd4FrO?= =?us-ascii?q?iuKIQEBAQEBAQEBAQEBAQEBAQEBAQEBAR2IUIJphGAJFoJQLYIxBZU3hhEBkWS?= =?us-ascii?q?Bd4UPiWhIh1SKUwEfOIFGFUoBhiZziCeBDQEBAQ?= X-IronPort-AV: E=Sophos;i="5.33,256,1477958400"; d="scan'208,217";a="373395534" Received: from rcdn-core-10.cisco.com ([173.37.93.146]) by alln-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jan 2017 02:32:45 +0000 Received: from XCH-RTP-010.cisco.com (xch-rtp-010.cisco.com [64.101.220.150]) by rcdn-core-10.cisco.com (8.14.5/8.14.5) with ESMTP id v0K2WiMb019064 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 20 Jan 2017 02:32:44 GMT Received: from xch-rtp-008.cisco.com (64.101.220.148) by XCH-RTP-010.cisco.com (64.101.220.150) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 19 Jan 2017 21:30:21 -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; Thu, 19 Jan 2017 21:30:21 -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//7pEgA== Date: Fri, 20 Jan 2017 02:30:21 +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.24.90.7] 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 02:32:47 -0000 VGhhbmtzIElnb3IgZm9yIHlvdXIgY29tbWVudHMhDQoNCkEgZ29vZCBwb2ludCBvbiB0aGUgZmly c3QgaXRlbS4NCkZvciB0aGUgc2Vjb25kIHF1ZXN0aW9uLCBJIHdhbGtlZCB0aHJvdWdoIGRldmlj ZSBpbml0a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CAxMDA2NDQNCiAgICAtLS0gYS9saWIvbGlicnRlX2V0aGVyL3J0ZV9ldGhkZXYuYw0K ICAgICsrKyBiL2xpYi9saWJydGVfZXRoZXIvcnRlX2V0aGRldi5jDQogICAgQEAgLTk1MSwxMCAr OTUxLDEyIEBAIHJ0ZV9ldGhfZGV2X2NvbmZpZ19yZXN0b3JlKHVpbnQ4X3QgcG9ydF9pZCkNCiAg ICAgICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlOw0KDQogICAgICAgICAgICAgICAgLyogYWRk IGFkZHJlc3MgdG8gdGhlIGhhcmR3YXJlICovDQogICAgLSAgICAgICAgICAgaWYgICgqZGV2LT5k ZXZfb3BzLT5tYWNfYWRkcl9hZGQgJiYNCiAgICAtICAgICAgICAgICAgICAgICAgIChkZXYtPmRh dGEtPm1hY19wb29sX3NlbFtpXSAmICgxVUxMIDw8IHBvb2wpKSkNCiAgICAtICAgICAgICAgICAg ICAgICAgICgqZGV2LT5kZXZfb3BzLT5tYWNfYWRkcl9hZGQpKGRldiwgJmFkZHIsIGksIHBvb2wp Ow0KICAgIC0gICAgICAgICAgIGVsc2Ugew0KICAgICsgICAgICAgICAgIGlmICAoKmRldi0+ZGV2 X29wcy0+bWFjX2FkZHJfYWRkKSB7DQogICAgKyAgICAgICAgICAgICAgICAgICBpZiAoZGV2LT5k YXRhLT5tYWNfcG9vbF9zZWxbaV0gJiAoMVVMTCA8PCBwb29sKSkNCiAgICArICAgICAgICAgICAg ICAgICAgICAgICAgICAgKCpkZXYtPmRldl9vcHMtPm1hY19hZGRyX2FkZCkoZGV2LCAmYWRkciwg aSwgcG9vbCk7DQogICAgKyAgICAgICAgICAgICAgICAgICBlbHNlDQogICAgKyAgICAgICAgICAg ICAgICAgICAgICAgICAgIGNvbnRpbnVlOw0KICAgICsgICAgICAgICAgIH0gZWxzZSB7DQogICAg ICAgICAgICAgICAgICAgICAgICBSVEVfUE1EX0RFQlVHX1RSQUNFKCJwb3J0ICVkOiBNQUMgYWRk cmVzcyBhcnJheSBub3Qgc3VwcG9ydGVkXG4iLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIHBvcnRfaWQpOw0KICAgICAgICAgICAgICAgICAgICAgICAgLyogZXhpdCB0 aGUgbG9vcCBidXQgbm90IHJldHVybiBhbiBlcnJvciAqLw0KICAgIC0tDQogICAgMi45LjMNCg0K DQoNCg==