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 0C56B9614 for ; Wed, 15 Jun 2016 02:57:28 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP; 14 Jun 2016 17:57:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,473,1459839600"; d="scan'208";a="828206460" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 14 Jun 2016 17:57:27 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 14 Jun 2016 17:57:27 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 14 Jun 2016 17:57:27 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.147]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.8]) with mapi id 14.03.0248.002; Wed, 15 Jun 2016 08:57:25 +0800 From: "Lu, Wenzhuo" To: "Richardson, Bruce" CC: "dev@dpdk.org" , "Wu, Jingjing" Thread-Topic: [dpdk-dev] [PATCH v2 1/2] ixgbe: VF supports mailbox interruption for PF link up/down Thread-Index: AQHRu6h3GI9rkkm60E2pL38ZayrVxp/ovSyAgAEK4dA= Date: Wed, 15 Jun 2016 00:57:25 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09090348648B@shsmsx102.ccr.corp.intel.com> References: <1464069991-31051-1-git-send-email-wenzhuo.lu@intel.com> <1464745989-28280-1-git-send-email-wenzhuo.lu@intel.com> <1464745989-28280-2-git-send-email-wenzhuo.lu@intel.com> <20160614165338.GA9836@bricha3-MOBL3> In-Reply-To: <20160614165338.GA9836@bricha3-MOBL3> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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 v2 1/2] ixgbe: VF supports mailbox interruption for PF link up/down X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2016 00:57:29 -0000 Hi Bruce, > -----Original Message----- > From: Richardson, Bruce > Sent: Wednesday, June 15, 2016 12:54 AM > To: Lu, Wenzhuo > Cc: dev@dpdk.org; Wu, Jingjing > Subject: Re: [dpdk-dev] [PATCH v2 1/2] ixgbe: VF supports mailbox > interruption for PF link up/down >=20 > On Wed, Jun 01, 2016 at 09:53:08AM +0800, Wenzhuo Lu wrote: > > In this scenario, kernel PF + DPDK VF, when PF finds the link state > > changes, up -> down or down -> up, it will send a message to VF by > > mailbox. This link state change may be triggered by PHY > > disconnection/reconnection, configuration like *ifconfig down/up* or > > interface parameter, like MTU, change. > > This patch enables the support of the mailbox interruption, so VF can > > receive the message of link up/down. > > After VF receives this message, VF port need to be reset to recover. > > So the handler of this message registers a reset callback to let APP > > reset the VF port. > > > Hi Wenzhuo, >=20 > I'm a little unclear as to the last paragraph of this message. Does the a= pp > configure the callback to handle the reset, or does the driver set up a > callback automatically and handle the event itself? [In other words, > who/what is the "handler" in the final sentence, the driver or the app?] Sorry, I may not make it clear. The handler is the APP. In the code, _rte_= eth_dev_callback_process is used for the message. It's the APP's responsibi= lity to realize the callback function and decide what to do with the messag= e. >=20 > Thanks, > /Bruce