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 0E122A09F6; Fri, 18 Dec 2020 03:37:37 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D4746CA2A; Fri, 18 Dec 2020 03:37:35 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id DAF06CA1A; Fri, 18 Dec 2020 03:37:32 +0100 (CET) IronPort-SDR: M32GYAORiChQhTFn8PNq08AURkZnGNQXK7jEnBixpqvLzBR7Ecx2kgsTVTHSk3gKeCmQxzmYoA TQuCaCJHWkow== X-IronPort-AV: E=McAfee;i="6000,8403,9838"; a="239458715" X-IronPort-AV: E=Sophos;i="5.78,428,1599548400"; d="scan'208";a="239458715" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Dec 2020 18:37:31 -0800 IronPort-SDR: bNt0C0q5YdI7WADlJ4N4EzcQ0hhmgTfvdFA63JdWBDA1QoaG1FlboQooB6XumEzOuOyBcwiM/6 wmEDpj/EMwMA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,428,1599548400"; d="scan'208";a="334563514" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga007.fm.intel.com with ESMTP; 17 Dec 2020 18:37:31 -0800 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 17 Dec 2020 18:37:30 -0800 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 18 Dec 2020 10:37:28 +0800 Received: from shsmsx606.ccr.corp.intel.com ([10.109.6.216]) by SHSMSX606.ccr.corp.intel.com ([10.109.6.216]) with mapi id 15.01.1713.004; Fri, 18 Dec 2020 10:37:28 +0800 From: "Xie, WeiX" To: "Yu, DapengX" , "Yu, PingX" , "Chen, BoX C" CC: "Wu, Jingjing" , "Lu, Wenzhuo" , "stable@dpdk.org" , "bluca@debian.org" , "dev@dpdk.org" Thread-Topic: [PATCH] net/iavf: enable port reset Thread-Index: AQHW1GCBOJJsQ0Qda0W2yGt5BWOIhan6688AgAEuEsCAAAh3gA== Date: Fri, 18 Dec 2020 02:37:28 +0000 Message-ID: References: <20201217103608.234579-1-dapengx.yu@intel.com> <9da466c5a8155ce123e983ab07a25fa866873f15.camel@debian.org> <5f219a97191f4064aa22f57160795737@intel.com> In-Reply-To: <5f219a97191f4064aa22f57160795737@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/iavf: enable port reset 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" VGVzdGVkLWJ5OiAgWGllLFdlaVggPCB3ZWl4LnhpZUBpbnRlbC5jb20+DQoNClJlZ2FyZHMsDQpY aWUgV2VpDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogTHVjYSBCb2Nj YXNzaSBbbWFpbHRvOmJsdWNhQGRlYmlhbi5vcmddDQo+IFNlbnQ6IFRodXJzZGF5LCBEZWNlbWJl ciAxNywgMjAyMCAxMTo1OCBQTQ0KPiB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