[dpdk-dev] [PATCH v4 1/2] eal: add uevent monitor for hot plug

Stephen Hemminger stephen at networkplumber.org
Sun Sep 3 18:16:08 CEST 2017


On Sun,  3 Sep 2017 23:49:44 +0800
Jeff Guo <jia.guo at intel.com> 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


More information about the dev mailing list