From 5c0953d8692aeb5704e05d453b76ba62cbc7423b Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 22 Jun 2020 02:09:09 +0200 Subject: [PATCH] eth: warn on tx ring overflow --- libboard_zynq/src/eth/tx.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libboard_zynq/src/eth/tx.rs b/libboard_zynq/src/eth/tx.rs index b326414..aa3c696 100644 --- a/libboard_zynq/src/eth/tx.rs +++ b/libboard_zynq/src/eth/tx.rs @@ -2,6 +2,7 @@ use core::ops::{Deref, DerefMut}; use alloc::{vec, vec::Vec}; use libcortex_a9::{cache::dcc_slice, UncachedSlice}; use libregister::*; +use log::warn; use super::{Buffer, regs}; /// Descriptor entry @@ -109,6 +110,7 @@ impl DescList { Some(PktRef { entry, buffer, regs }) } else { // Still in use by HW (sending too fast, ring exceeded) + warn!("tx ring overflow"); None } }