From ea89fd0dd4e7bd9a4050f6ae2b79d3b359c60a9a Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 24 Oct 2019 13:30:59 -0700 Subject: rfnoc: xports: Count FC bytes as multiples of CHDR width SEPs on the FPGA can only occupy multiples of the CHDR width in their FIFOs, unlike SW, where buffers are stored in RAM and can be aligned anyhow. Therefore, we align the counting of bytes for FC purpose and count multiples of CHDR width instead of the true number of bytes per packet. --- host/lib/include/uhdlib/rfnoc/rx_flow_ctrl_state.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'host/lib/include/uhdlib/rfnoc/rx_flow_ctrl_state.hpp') diff --git a/host/lib/include/uhdlib/rfnoc/rx_flow_ctrl_state.hpp b/host/lib/include/uhdlib/rfnoc/rx_flow_ctrl_state.hpp index ed6553bf3..b8bb411d4 100644 --- a/host/lib/include/uhdlib/rfnoc/rx_flow_ctrl_state.hpp +++ b/host/lib/include/uhdlib/rfnoc/rx_flow_ctrl_state.hpp @@ -37,10 +37,12 @@ public: _xfer_counts.packets += pkts_dropped; UHD_LOGGER_DEBUG("rx_flow_ctrl_state") - << "oh noes: bytes_sent=" << counts.bytes - << " bytes_received=" << _recv_counts.bytes - << " pkts_sent=" << counts.packets - << " pkts_received=" << _recv_counts.packets + << "Flow control state mismatch: bytes reported: " << counts.bytes + << " bytes counted locally: " << _recv_counts.bytes + << " delta: " << (counts.bytes - _recv_counts.bytes) + << " Packets reported: " << counts.packets + << " Packets counted locally: " << _recv_counts.packets + << " delta: " << (counts.packets - _recv_counts.packets) << " src_epid=" << _epids.first << " dst_epid=" << _epids.second << std::endl; -- cgit v1.2.3