"...composable_kernel_rocm.git" did not exist on "abf4bdb9a9946c578d4801a79650e79938fb0e41"
Commit 86e0c4fb authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

sims/nic/corundum: less verbose by default

No reason to print a warning on every drop. Slows down kvm simulation
quite a bit
parent 86751f6f
...@@ -660,7 +660,9 @@ class EthernetRx { ...@@ -660,7 +660,9 @@ class EthernetRx {
void packet_received(const void *data, size_t len) { void packet_received(const void *data, size_t len) {
if (fifo_lens[fifo_pos_wr] != 0) { if (fifo_lens[fifo_pos_wr] != 0) {
#ifdef ETH_DEBUG
std::cerr << "EthernetRx: dropping packet" << std::endl; std::cerr << "EthernetRx: dropping packet" << std::endl;
#endif
return; return;
} }
...@@ -685,7 +687,9 @@ class EthernetRx { ...@@ -685,7 +687,9 @@ class EthernetRx {
// we have data to send // we have data to send
if (packet_off != 0 && !top.rx_axis_tready) { if (packet_off != 0 && !top.rx_axis_tready) {
// no ready signal, can't advance // no ready signal, can't advance
std::cerr << "eth rx: no ready" << std::endl; #ifdef ETH_DEBUG
std::cerr << "eth rx: no ready " << fifo_pos_rd << " " << packet_off << std::endl;
#endif
} else if (packet_off == fifo_lens[fifo_pos_rd]) { } else if (packet_off == fifo_lens[fifo_pos_rd]) {
// done with packet // done with packet
#ifdef ETH_DEBUG #ifdef ETH_DEBUG
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment