summaryrefslogtreecommitdiffstats
path: root/src/dpdk/lib
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-07-17 12:48:05 +0300
committerIdo Barnea <ibarnea@cisco.com>2016-07-24 14:01:10 +0300
commit3c106ce73a4a54863ed1c3df47c09eb1e63fadaf (patch)
tree4c8fb1c16c2bac869019b276dcec94444d1c79a0 /src/dpdk/lib
parenta551c94a6069f30617825f9046d36099846ab7ec (diff)
dpdk0716 move: changes to our files
Diffstat (limited to 'src/dpdk/lib')
-rw-r--r--src/dpdk/lib/librte_eal/linuxapp/eal/eal_interrupts.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/dpdk/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/src/dpdk/lib/librte_eal/linuxapp/eal/eal_interrupts.c
index 47a3b20a..54ab6253 100644
--- a/src/dpdk/lib/librte_eal/linuxapp/eal/eal_interrupts.c
+++ b/src/dpdk/lib/librte_eal/linuxapp/eal/eal_interrupts.c
@@ -73,6 +73,9 @@
static RTE_DEFINE_PER_LCORE(int, _epfd) = -1; /**< epoll fd per thread */
+// TREX_PATCH
+int eal_err_read_from_file_is_error = 1;
+
/**
* union for pipe fds.
*/
@@ -709,10 +712,19 @@ eal_intr_process_interrupts(struct epoll_event *events, int nfds)
if (errno == EINTR || errno == EWOULDBLOCK)
continue;
- RTE_LOG(ERR, EAL, "Error reading from file "
- "descriptor %d: %s\n",
- events[n].data.fd,
- strerror(errno));
+ // TREX_PATCH. Because of issues with e1000, we want this message to
+ // have lower priority only if running on e1000 card
+ if (eal_err_read_from_file_is_error) {
+ RTE_LOG(ERR, EAL, "Error reading from file "
+ "descriptor %d: %s\n",
+ events[n].data.fd,
+ strerror(errno));
+ } else {
+ RTE_LOG(INFO, EAL, "Error reading from file "
+ "descriptor %d: %s\n",
+ events[n].data.fd,
+ strerror(errno));
+ }
} else if (bytes_read == 0)
RTE_LOG(ERR, EAL, "Read nothing from file "
"descriptor %d\n", events[n].data.fd);