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 7AE6029CA for ; Thu, 29 Jun 2017 06:48:06 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jun 2017 21:48:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,278,1496127600"; d="scan'208";a="872879221" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 28 Jun 2017 21:48:05 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 28 Jun 2017 21:48:05 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.116]) by shsmsx102.ccr.corp.intel.com ([169.254.2.146]) with mapi id 14.03.0319.002; Thu, 29 Jun 2017 12:48:01 +0800 From: "Wu, Jingjing" To: Stephen Hemminger , "Guo, Jia" CC: "Zhang, Helin" , "dev@dpdk.org" , "Chang, Cunyin" , "Liang, Cunming" Thread-Topic: [dpdk-dev] [PATCH v2 2/2] net/i40e: add hot plug monitor in i40e Thread-Index: AQHS7/8+mc2DbTpTJkWmOnVtVUUitKI6qy2AgACYWzA= Date: Thu, 29 Jun 2017 04:48:01 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F810DB5BBA@SHSMSX103.ccr.corp.intel.com> References: <1495986280-26207-1-git-send-email-jia.guo@intel.com> <1498648044-57541-1-git-send-email-jia.guo@intel.com> <1498648044-57541-2-git-send-email-jia.guo@intel.com> <20170628203441.22e9dbb8@xeon-e3> In-Reply-To: <20170628203441.22e9dbb8@xeon-e3> 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 2/2] net/i40e: add hot plug monitor 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: Thu, 29 Jun 2017 04:48:07 -0000 > -----Original Message----- > From: Stephen Hemminger [mailto:stephen@networkplumber.org] > Sent: Thursday, June 29, 2017 11:35 AM > To: Guo, Jia > Cc: Zhang, Helin ; Wu, Jingjing > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 2/2] net/i40e: add hot plug monitor in = i40e >=20 > On Wed, 28 Jun 2017 19:07:24 +0800 > Jeff Guo wrote: >=20 > > From: "Guo, Jia" > > > > This patch enable the hot plug feature in i40e, by monitoring the hot > > plug uevent of the device. When remove event got, call the app > > callback function to handle the detach process. > > > > Signed-off-by: Guo, Jia > > --- >=20 > Hot plug is good and needed. >=20 > But it needs to be done in a generic fashion in the bus layer. > There is nothing about uevents that are unique to i40e or even Intel devi= ces. > Plus the way hotplug is handled is OS specific, so this isn't going to wo= rk well on > BSD. >=20 This patch is not a way to full support hut plug. And we know it is handled= in OS specific. This patch just provides a way to tell DPDK user the remove happened on thi= s device (DPDK dev). And Mlx driver already supports that with patch http://dpdk.org/dev/patchwork/patch/23695/ What GuoJia did is just making the EVENT can be process by application thro= ugh interrupt callback Mechanisms. > Sorry if I sound like a broken record but there has been a repeated patte= rn of > Intel developers putting their head down (or in the sand) and creating > functionality inside device driver. Sorry, I cannot agree. Thanks Jingjing