[dpdk-dev] [PATCH v7 03/10] eal/linux: add API to set rx interrupt event monitor

Stephen Hemminger shemming at brocade.com
Fri May 8 04:58:59 CEST 2015


On Tue,  5 May 2015 13:39:39 +0800
Cunming Liang <cunming.liang at intel.com> wrote:

> +	bytes_read = read(fd, &buf, bytes_read);
> +	if (bytes_read < 0)
> +		RTE_LOG(ERR, EAL, "Error reading from file "
> +			"descriptor %d: %s\n", fd,
> +			strerror(errno)

The read could be interrupted (EINTR) or there could be a race (EWOULDBLOCK).
In those cases the code should not log anything.


More information about the dev mailing list