From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v4 1/2] eal: add uevent monitor for hot plug Date: Sun, 3 Sep 2017 09:16:08 -0700 Message-ID: <20170903091608.7e131380@xeon-e3> References: <1498712510-44217-2-git-send-email-jia.guo@intel.com> <1504453785-15735-1-git-send-email-jia.guo@intel.com> <1504453785-15735-2-git-send-email-jia.guo@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: bruce.richardson@intel.com, dev@dpdk.org, gaetan.rivet@6wind.com, shreyansh.jain@nxp.com, jblunck@infradead.org, helin.zhang@intel.com, ferruh.yigit@intel.com, konstantin.ananyev@intel.com, thomas@monjalon.net, jingjing.wu@intel.com To: Jeff Guo Return-path: Received: from mail-pg0-f44.google.com (mail-pg0-f44.google.com [74.125.83.44]) by dpdk.org (Postfix) with ESMTP id 3D2E458F6 for ; Sun, 3 Sep 2017 18:16:11 +0200 (CEST) Received: by mail-pg0-f44.google.com with SMTP id b8so12654814pgn.5 for ; Sun, 03 Sep 2017 09:16:11 -0700 (PDT) In-Reply-To: <1504453785-15735-2-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" On Sun, 3 Sep 2017 23:49:44 +0800 Jeff Guo wrote: > + /** > + * add device uevent file descriptor > + * into wait list for uevent monitoring. > + */ > + ev.events = EPOLLIN | EPOLLPRI | EPOLLRDHUP | EPOLLHUP; > + ev.data.fd = src->intr_handle.uevent_fd; > + if (epoll_ctl(pfd, EPOLL_CTL_ADD, > + src->intr_handle.uevent_fd, &ev) < 0){ > + rte_panic("Error adding uevent_fd %d epoll_ctl" > + ", %s\n", > + src->intr_handle.uevent_fd, > + strerror(errno)); Panicing a user application under load is not going to make people happy