return -E1000_ERR_CONFIG;
}
+//TREX_PATCH
+extern int eal_err_read_from_file_is_error;
/**
* e1000_init_hw - Initialize hardware
* @hw: pointer to the HW structure
**/
s32 e1000_init_hw(struct e1000_hw *hw)
{
+ //TREX_PATCH
+ eal_err_read_from_file_is_error = 0;
+
if (hw->mac.ops.init_hw)
return hw->mac.ops.init_hw(hw);
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.
*/
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);