From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id EB6401B009 for ; Tue, 10 Jul 2018 15:27:19 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2018 06:27:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,334,1526367600"; d="scan'208";a="244505724" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga006.fm.intel.com with ESMTP; 10 Jul 2018 06:26:41 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 10 Jul 2018 06:26:41 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 10 Jul 2018 06:26:41 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.100]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.173]) with mapi id 14.03.0319.002; Tue, 10 Jul 2018 21:26:39 +0800 From: "Zhang, Qi Z" 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" , "He, Shaopeng" , "Iremonger, Bernard" , "arybchenko@solarflare.com" CC: "jblunck@infradead.org" , "shreyansh.jain@nxp.com" , "dev@dpdk.org" , "Zhang, Helin" Thread-Topic: [PATCH v4 3/4] net/i40e: install hotplug handler in i40e Thread-Index: AQHUGE0eT+Vv+mToUE2lvKMCFKoaLqSIciRQ Date: Tue, 10 Jul 2018 13:26:39 +0000 Message-ID: <039ED4275CED7440929022BC67E7061153257F5A@SHSMSX103.ccr.corp.intel.com> References: <1530787185-5915-1-git-send-email-jia.guo@intel.com> <1531227098-29564-1-git-send-email-jia.guo@intel.com> <1531227098-29564-4-git-send-email-jia.guo@intel.com> In-Reply-To: <1531227098-29564-4-git-send-email-jia.guo@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDAyNjJkMzUtN2Y2Mi00NzdmLTljNzAtZTU4YmUyZTYyODlhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoieExzSXBvR09LdlRzNGVhVldBTzVtRWlnbWZVdnVWQnNYWU8wdmtpNjlVbGU0MDE3ZUZIR0d2QXErelF2bFZ1XC8ifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 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/4] net/i40e: install hotplug handler in i40e 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 13:27:20 -0000 > -----Original Message----- > From: Guo, Jia > Sent: Tuesday, July 10, 2018 8:52 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 > Cc: jblunck@infradead.org; shreyansh.jain@nxp.com; dev@dpdk.org; Guo, Jia > ; Zhang, Helin > Subject: [PATCH v4 3/4] net/i40e: install hotplug handler in i40e >=20 > This patch aim to enable hotplug detect in i40e PMD. Firstly it set the f= lags > RTE_PCI_DRV_INTR_RMV in drv_flags to announce the hotplug ability, and > then use rte_eth_dev_event_handler_install to install the hotplug event > handler for ethdev. When eal detect the hotplug event, it will call the e= thdev > callback to process it. If the event is hotplug removal, it will trigger = the > RTE_ETH_EVENT_INTR_RMV event into ethdev callback to let app process the > hotplug for this ethdev. >=20 > This is an example for other driver, that if any driver support hotplug f= eature > could be use this way to install hotplug handler. >=20 > Signed-off-by: Jeff Guo Acked-by: Qi Zhang