From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 5FD7E1B027 for ; Tue, 10 Jul 2018 10:19:51 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2018 01:19:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,333,1526367600"; d="scan'208";a="244011513" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga005.fm.intel.com with ESMTP; 10 Jul 2018 01:19:34 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 10 Jul 2018 01:19:34 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 10 Jul 2018 01:19:34 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.124]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.81]) with mapi id 14.03.0319.002; Tue, 10 Jul 2018 16:19:32 +0800 From: "Lu, Wenzhuo" To: "Guo, Jia" , "stephen@networkplumber.org" , "Richardson, Bruce" , "Yigit, Ferruh" , "Ananyev, Konstantin" , "gaetan.rivet@6wind.com" , "Wu, Jingjing" , "thomas@monjalon.net" , "motih@mellanox.com" , "matan@mellanox.com" , "Van Haaren, Harry" , "Zhang, Qi Z" , "He, Shaopeng" , "Iremonger, Bernard" , "arybchenko@solarflare.com" CC: "jblunck@infradead.org" , "shreyansh.jain@nxp.com" , "dev@dpdk.org" , "Zhang, Helin" Thread-Topic: [PATCH v3 2/4] net/ixgbe: enable hotplug detect in ixgbe Thread-Index: AQHUF3rLKJCYrehhJkOfYlRG4xcSLaSIHjzQ Date: Tue, 10 Jul 2018 08:19:32 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B80292C@shsmsx102.ccr.corp.intel.com> References: <1530787185-5915-1-git-send-email-jia.guo@intel.com> <1531136777-9815-1-git-send-email-jia.guo@intel.com> <1531136777-9815-3-git-send-email-jia.guo@intel.com> In-Reply-To: <1531136777-9815-3-git-send-email-jia.guo@intel.com> 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 v3 2/4] net/ixgbe: enable hotplug detect in ixgbe 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: Tue, 10 Jul 2018 08:19:52 -0000 Hi, > -----Original Message----- > From: Guo, Jia > Sent: Monday, July 9, 2018 7:46 PM > To: stephen@networkplumber.org; Richardson, Bruce > ; Yigit, Ferruh ; > Ananyev, Konstantin ; > gaetan.rivet@6wind.com; Wu, Jingjing ; > thomas@monjalon.net; motih@mellanox.com; matan@mellanox.com; Van > Haaren, Harry ; Zhang, Qi Z > ; He, Shaopeng ; > Iremonger, Bernard ; > arybchenko@solarflare.com; Lu, Wenzhuo > Cc: jblunck@infradead.org; shreyansh.jain@nxp.com; dev@dpdk.org; Guo, > Jia ; Zhang, Helin > Subject: [PATCH v3 2/4] net/ixgbe: enable hotplug detect in ixgbe >=20 > This patch aim to enable hotplug detect in ixgbe pmd driver. Firstly it s= et the > flags RTE_PCI_DRV_INTR_RMV in drv_flags to announce the hotplug ability, > and then use rte_dev_event_callback_register to register the hotplug even= t > callback to eal. When eal detect the hotplug event, it will call the call= back to > process it, if the event is hotplug remove, it will trigger the > RTE_ETH_EVENT_INTR_RMV event into ethdev callback to let app process > the hotplug for the ethdev. >=20 > This is an example for other driver, that if any driver support hotplug f= eature > could be use this way to enable hotplug detect. >=20 > Signed-off-by: Jeff Guo Acked-by: Wenzhuo Lu