From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rcdn-iport-2.cisco.com (rcdn-iport-2.cisco.com [173.37.86.73]) by dpdk.org (Postfix) with ESMTP id EDD74DE5 for ; Tue, 24 Jan 2017 00:20:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=19674; q=dns/txt; s=iport; t=1485213608; x=1486423208; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=EF1GjsxAVHsI2UpUTOd8Ckx3RfS0XvOnZfxSg3kZV5E=; b=OzefkH++6fRaamkCeow8rUNrMCxLEzaCX4j42MNaikdvjg6zfAVKVn+R nq0dV2/5PVzYBF7zhp2gdntq5cjQnFH4OMiREio7VEmpoKaCPaJD8TB3/ sCG7n18WD4GoUSLrIlYVQIdvJTVjSK1mxrQN/+vMhelaumd5wQKUQ9scs s=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CzAQBejoZY/49dJa1eGQEBAQEBAQEBA?= =?us-ascii?q?QEBBwEBAQEBgm9OAQEBAQEfYIEJB4NMigiSBZADgxyCD4INhiICGoFqPxgBAgE?= =?us-ascii?q?BAQEBAQFjKIRpAQEBBCMEUhACAQgOAwMBAigDAgICMBQJCAIEDgWJDK1RgWs6K?= =?us-ascii?q?4owAQEBAQEBAQEBAQEBAQEBAQEBAQEBHYhQgmqEYAkWglAtgjEFiQCMOoYRAZF?= =?us-ascii?q?pkG6SdQEfOIFHFUoBhiVzhw+BDQEBAQ?= X-IronPort-AV: E=Sophos;i="5.33,275,1477958400"; d="scan'208,217";a="202014995" Received: from rcdn-core-7.cisco.com ([173.37.93.143]) by rcdn-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jan 2017 23:19:52 +0000 Received: from XCH-RTP-009.cisco.com (xch-rtp-009.cisco.com [64.101.220.149]) by rcdn-core-7.cisco.com (8.14.5/8.14.5) with ESMTP id v0NNJpkI030481 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Mon, 23 Jan 2017 23:19:52 GMT Received: from xch-rtp-008.cisco.com (64.101.220.148) by XCH-RTP-009.cisco.com (64.101.220.149) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 23 Jan 2017 18:19:51 -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; Mon, 23 Jan 2017 18:19:51 -0500 From: "Steve Shin (jonshin)" To: Igor Ryzhov CC: "dev@dpdk.org" , Ferruh Yigit Thread-Topic: [PATCH v2] ethdev: fix MAC address replay Thread-Index: AQHSc2vxzUXQHL1VZU+b3JXA0QWaB6FGGHGAgABszwA= Date: Mon, 23 Jan 2017 23:19:51 +0000 Message-ID: <3017401F-ACE6-4C77-920C-F072BFC4044F@cisco.com> References: <20170119184721.22348-1-jonshin@cisco.com> <20170120222349.14567-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.155.156.221] 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 v2] ethdev: fix 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: Mon, 23 Jan 2017 23:20:09 -0000 RGVhciBJZ29yLA0KDQpZZXMsIHlvdeKAmXJlIHJpZ2h0LiBXZSBuZWVkIHRvIGhhbmRsZSBhIGNh c2UgKGV4LCBTUi1JT1YpIHdoZXJlIG11bHRpcGxlIHBvb2xzIG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AgIH0N Cg0KLSAgICAgICAgICAgICAgIC8qIHNraXAgemVybyBhZGRyZXNzICovDQotICAgICAgICAgICAg ICAgaWYgKGlzX3plcm9fZXRoZXJfYWRkcigmYWRkcikpDQotICAgICAgICAgICAgICAgICAgICAg ICBjb250aW51ZTsNCisgICAgICAgaWYgKCpkZXYtPmRldl9vcHMtPm1hY19hZGRyX2FkZCAhPSBO VUxMKSB7DQorICAgICAgICAgICAgICAgZm9yIChpID0gMTsgaSA8IGRldl9pbmZvLm1heF9tYWNf YWRkcnM7IGkrKykgew0KKyAgICAgICAgICAgICAgICAgICAgICAgYWRkciA9ICZkZXYtPmRhdGEt Pm1hY19hZGRyc1tpXTsNCg0KLSAgICAgICAgICAgICAgIC8qIGFkZCBhZGRyZXNzIHRvIHRoZSBo YXJkd2FyZSAqLw0KLSAgICAgICAgICAgICAgIGlmICAoKmRldi0+ZGV2X29wcy0+bWFjX2FkZHJf YWRkICYmDQotICAgICAgICAgICAgICAgICAgICAgICAoZGV2LT5kYXRhLT5tYWNfcG9vbF9zZWxb aV0gJiAoMVVMTCA8PCBwb29sKSkpDQotICAgICAgICAgICAgICAgICAgICAgICAoKmRldi0+ZGV2 X29wcy0+bWFjX2FkZHJfYWRkKShkZXYsICZhZGRyLCBpLCBwb29sKTsNCi0gICAgICAgICAgICAg ICBlbHNlIHsNCi0gICAgICAgICAgICAgICAgICAgICAgIFJURV9QTURfREVCVUdfVFJBQ0UoInBv cnQgJWQ6IE1BQyBhZGRyZXNzIGFycmF5IG5vdCBzdXBwb3J0ZWRcbiIsDQotICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgcG9ydF9pZCk7DQotICAgICAgICAgICAgICAgICAg ICAgICAvKiBleGl0IHRoZSBsb29wIGJ1dCBub3QgcmV0dXJuIGFuIGVycm9yICovDQotICAgICAg ICAgICAgICAgICAgICAgICBicmVhazsNCisgICAgICAgICAgICAgICAgICAgICAgIC8qIHNraXAg emVybyBhZGRyZXNzICovDQorICAgICAgICAgICAgICAgICAgICAgICBpZiAoaXNfemVyb19ldGhl cl9hZGRyKGFkZHIpKQ0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb250aW51ZTsN CisNCisgICAgICAgICAgICAgICAgICAgICAgIC8qIGFkZCBhZGRyZXNzIHRvIHRoZSBoYXJkd2Fy ZSAqLw0KKyAgICAgICAgICAgICAgICAgICAgICAgaWYgKGRldi0+ZGF0YS0+bWFjX3Bvb2xfc2Vs W2ldICYgKDFVTEwgPDwgcG9vbCkpDQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICgq ZGV2LT5kZXZfb3BzLT5tYWNfYWRkcl9hZGQpKGRldiwgYWRkciwgaSwgcG9vbCk7DQogICAgICAg ICAgICAgICAgfQ0KICAgICAgICB9DQoNCi0tDQoyLjkuMw0KDQo=