From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 301871B54A for ; Fri, 30 Nov 2018 07:52:44 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Nov 2018 22:52:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,297,1539673200"; d="scan'208";a="113859020" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 29 Nov 2018 22:52:42 -0800 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 29 Nov 2018 22:52:42 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 29 Nov 2018 22:52:42 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.201]) by shsmsx102.ccr.corp.intel.com ([169.254.2.182]) with mapi id 14.03.0415.000; Fri, 30 Nov 2018 14:52:39 +0800 From: "Yan, Zhirun" To: 'Ilya Maximets' , "dev@dpdk.org" CC: "Wang, Haiyue" , "Zhang, Qi Z" Thread-Topic: [v1] net/i40e: fix RX/TX setup when restart port Thread-Index: AQHUhv1XiBmjLpxHU02Zq+fO1cjJQ6VnzF4w Date: Fri, 30 Nov 2018 06:52:38 +0000 Message-ID: <2F9759EBFF61914290A3BA61BDBE2C860B9D0951@SHSMSX101.ccr.corp.intel.com> References: <20181128165152.78676-1-zhirun.yan@intel.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMmFiMWE5ZmMtOGQwNC00MzM4LTk0NTAtMTJjNDhhYWZiYWQzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiaGpDQ2RxN1I4MFwvODY5YjZVK2hVVWJ0bVBsOHJUZmJQQlozUVNCNTRpZHY3V3hHdjhmV3hvb1VZaHA4MFVPOUMifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [v1] net/i40e: fix RX/TX setup when restart port 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, 30 Nov 2018 06:52:44 -0000 SGkgSWx5YSwNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBJbHlhIE1h eGltZXRzIFttYWlsdG86aS5tYXhpbWV0c0BzYW1zdW5nLmNvbV0NCj4gU2VudDogV2VkbmVzZGF5 LCBOb3ZlbWJlciAyOCwgMjAxOCA1OjMyIFBNDQo+IFRvOiBZYW4sIFpoaXJ1biA8emhpcnVuLnlh bkBpbnRlbC5jb20+OyBkZXZAZHBkay5vcmc7IFpoYW5nLCBRaSBaDQo+IDxxaS56LnpoYW5nQGlu dGVsLmNvbT4NCj4gQ2M6IFdhbmcsIEhhaXl1ZSA8aGFpeXVlLndhbmdAaW50ZWwuY29tPg0KPiBT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