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 D2298A0471 for ; Tue, 16 Jul 2019 17:13:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 29EFF37B0; Tue, 16 Jul 2019 17:13:37 +0200 (CEST) Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-eopbgr780044.outbound.protection.outlook.com [40.107.78.44]) by dpdk.org (Postfix) with ESMTP id 3BC2EDE3 for ; Mon, 15 Jul 2019 19:56:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=memverge.onmicrosoft.com; s=selector2-memverge-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Kr1nhPXAbo5t6BOO/UjPIMAr2G2PyfTm1xA4q7jDZRM=; b=WinizRhlT13TVbfQJ8p547F/SUd4KNFnd27xEuRExo/EOc/eMK1qsNRcD3Fb+V4Qmq6c4pePo+oN+mcP8farLUF3I1MJAwnEOqttZGyMDPdlAVOttNRstV+lz2wzC3fySORXkelh1axuvSta/e7PHa5n/4W/8hbqOexjhp40eAE= Received: from BYAPR17MB2757.namprd17.prod.outlook.com (20.178.233.14) by BYAPR17MB2229.namprd17.prod.outlook.com (52.135.220.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2052.19; Mon, 15 Jul 2019 17:56:54 +0000 Received: from BYAPR17MB2757.namprd17.prod.outlook.com ([fe80::95bd:5eba:750f:3519]) by BYAPR17MB2757.namprd17.prod.outlook.com ([fe80::95bd:5eba:750f:3519%7]) with mapi id 15.20.2073.012; Mon, 15 Jul 2019 17:56:53 +0000 From: Jun Gan To: "users@dpdk.org" Thread-Topic: Intel 10G X550T NIC takes a long time(25s+) after DPDK initialization to passing traffic correctly. Thread-Index: AQHVOzavXI/COAIhe0KhcHLLp7XQuw== Date: Mon, 15 Jul 2019 17:56:53 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=jun.gan@memverge.com; x-originating-ip: [104.184.156.161] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0ddc7465-dc1f-4e01-e07b-08d7094dd225 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(7021145)(8989299)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BYAPR17MB2229; x-ms-traffictypediagnostic: BYAPR17MB2229: x-ms-exchange-purlcount: 3 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 00997889E7 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(136003)(39830400003)(346002)(52544003)(199004)(189003)(14454004)(316002)(44832011)(99286004)(1730700003)(81156014)(81166006)(7736002)(966005)(8676002)(53936002)(86362001)(6306002)(2906002)(8936002)(5660300002)(6916009)(256004)(508600001)(486006)(66556008)(64756008)(66476007)(66446008)(2351001)(3846002)(66946007)(9326002)(6512007)(68736007)(2616005)(6116002)(186003)(54896002)(6486002)(6436002)(76116006)(6506007)(71200400001)(71190400001)(25786009)(5640700003)(33656002)(36756003)(2501003)(14444005)(66066001)(26005)(102836004)(476003); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR17MB2229; H:BYAPR17MB2757.namprd17.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: memverge.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: TmL6YUhQz/COWdTfLKG3AigfNsrRFDcFnGSt6kXodZz4sc1b5o4sLQihDFkwmrxQIXMMjzi5UuZQc7s2l+XIV3egdnbRvCAsUcHilM5bUHF0lxsg+YiSOv2plgE1czYXijptbjql6Xdes9UbJ+7w4uQeYyDPLIKpjHuGuBfIrBoyXESt2L0olG4Kh3o/M+RrKsIsJ0+o48VWEJwOBdYepx0horo2bHmH2EKHs6NsR19K5mft32VMh4WMdoNYcxrYXG5+uj6+KCd0lHJU2/IH12wBceO5qg2lS2XVTg43YP2MrHIpbgYNIpCrZF5UlIQnf2LogB+VPHsHQOdeaR52rTZOrbYeAegqnDlC3qOwUzV/rNV8wVUoetOLoVIpTNV3cUl8CYtQgjZiR3fT+KFewsUcYU+l7vRe8UngAUZP8AE= MIME-Version: 1.0 X-OriginatorOrg: memverge.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ddc7465-dc1f-4e01-e07b-08d7094dd225 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jul 2019 17:56:53.7474 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5c90cb59-37e7-4c81-9c07-00473d5fb682 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jun.gan@memverge.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR17MB2229 X-Mailman-Approved-At: Tue, 16 Jul 2019 17:13:35 +0200 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Intel 10G X550T NIC takes a long time(25s+) after DPDK initialization to passing traffic correctly. X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" SGksDQoNCldlIGhhdmUgYW4gaW50ZWwgMTBHIFg1NTBUIE5JQywgYWZ0ZXIgYmluZCBpdCB0byBp Z2JfdWlvIGFuZCBsYXV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9fLnJ4X2Rlc2NfbGltLm5iX21heCArIGRldl9pbmZvXy50eF9k ZXNjX2xpbS5uYl9tYXgNCiAgICAgICAgICArIDUxMiAvKiBQS1RQT09MX0VYVFJBX1NJWkUgKi87 DQoNCiAgLy8gUGFja2V0IG1lbSBwb29sIGZvciB0eA0KICB0eF9wa3RfcG9vbF8gPSBydGVfcGt0 bWJ1Zl9wb29sX2NyZWF0ZSgicGt0X3Bvb2xfdHgiLA0KICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICBzaXplX3BrdHBvb2wsDQogICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIDMyIC8qIHBlciBsY29yZSBjYWNoZSBzaXplKi8sDQogICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDAsDQogICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIFJURV9NQlVGX0RFRkFVTFRfQlVGX1NJWkUsDQogICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRldl9zb2NrZXRfaWQpOw0KICBhc3NlcnQo dHhfcGt0X3Bvb2xfICE9IE5VTEwpOw0KDQogIC8vIFBhY2tldCBtZW0gcG9vbCBmb3IgcngNCiAg cnhfcGt0X3Bvb2xfID0gcnRlX3BrdG1idWZfcG9vbF9jcmVhdGUoInBrdF9wb29sX3J4IiwNCiAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2l6ZV9wa3Rwb29sLA0KICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAzMiAvKiBwZXIgbGNvcmUgY2Fj aGUgc2l6ZSovLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAwLA0K ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBSVEVfTUJVRl9ERUZBVUxU X0JVRl9TSVpFLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA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