From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH V22 0/4] add device event monitor framework Date: Fri, 13 Apr 2018 12:03:38 +0200 Message-ID: <1662267.QzXHl4zxrY@xps> References: <1498711073-42917-1-git-send-email-jia.guo@intel.com> <1523608240-9754-1-git-send-email-jia.guo@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, stephen@networkplumber.org, bruce.richardson@intel.com, ferruh.yigit@intel.com, konstantin.ananyev@intel.com, gaetan.rivet@6wind.com, jingjing.wu@intel.com, motih@mellanox.com, harry.van.haaren@intel.com, jianfeng.tan@intel.com, shreyansh.jain@nxp.com, helin.zhang@intel.com To: Jeff Guo Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 01F431BB81 for ; Fri, 13 Apr 2018 12:03:41 +0200 (CEST) In-Reply-To: <1523608240-9754-1-git-send-email-jia.guo@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 13/04/2018 10:30, Jeff Guo: > About hot plug in dpdk, We already have proactive way to add/remove devices > through APIs (rte_eal_hotplug_add/remove), and also have fail-safe driver > to offload the fail-safe work from the app user. But there are still lack > of a general mechanism to monitor hotplug event for all driver, now the > hotplug interrupt event is diversity between each device and driver, such > as mlx4, pci driver and others. > > Use the hot removal event for example, pci drivers not all exposure the > remove interrupt, so in order to make user to easy use the hot plug > feature for pci driver, something must be done to detect the remove event > at the kernel level and offer a new line of interrupt to the user land. > > Base on the uevent of kobject mechanism in kernel, we could use it to > benefit for monitoring the hot plug status of the device which not only > uio/vfio of pci bus devices, but also other, such as cpu/usb/pci-express bus devices. [...] > Jeff Guo (4): > eal: add device event handle in interrupt thread > eal: add device event monitor framework > eal/linux: uevent parse and process > app/testpmd: enable device hotplug monitoring Applied, thanks