From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 9DAA4377A for ; Fri, 30 Jun 2017 10:54:27 +0200 (CEST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jun 2017 01:54:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,285,1496127600"; d="scan'208";a="119304841" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga005.jf.intel.com with ESMTP; 30 Jun 2017 01:54:26 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 30 Jun 2017 01:54:26 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.116]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.122]) with mapi id 14.03.0319.002; Fri, 30 Jun 2017 16:54:25 +0800 From: "Wu, Jingjing" To: "Dai, Wei" , "thomas@monjalon.net" , "Lu, Wenzhuo" , "Ananyev, Konstantin" , "Zhang, Helin" , "Peng, Yuan" CC: "dev@dpdk.org" Thread-Topic: [PATCH v4 3/5] net/i40e: add support of reset Thread-Index: AQHS8O89iqsKW8PMqU+2fT+apOqdhKI9GsTw Date: Fri, 30 Jun 2017 08:54:25 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F810DB7541@SHSMSX103.ccr.corp.intel.com> References: <20170629083404.1271-1-wei.dai@intel.com> <1498748282-69914-1-git-send-email-wei.dai@intel.com> <1498748282-69914-4-git-send-email-wei.dai@intel.com> In-Reply-To: <1498748282-69914-4-git-send-email-wei.dai@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v4 3/5] net/i40e: add support of 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: , X-List-Received-Date: Fri, 30 Jun 2017 08:54:28 -0000 > } >=20 > +static int > +i40e_dev_reset(struct rte_eth_dev *dev) > +{ > + int ret; > + > + ret =3D eth_i40e_dev_uninit(dev); > + if (ret) > + return ret; > + > + ret =3D eth_i40e_dev_init(dev); > + > + return ret; Have you thought about if DPDK is working as host driver, and there Are VFs rely on it? If it doesn't support, at least a check should be added= . Or you can add those check in Rte level. Thanks Jingjing