diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-10-24 13:30:59 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 12:21:32 -0800 |
commit | ea89fd0dd4e7bd9a4050f6ae2b79d3b359c60a9a (patch) | |
tree | a18dfb692d9f2cff6a4df9ca3743aa189e74c6ed /host/lib/include/uhdlib/rfnoc/rx_flow_ctrl_state.hpp | |
parent | b4ef7ca804be35830a2c8ac5a143afafd33362f6 (diff) | |
download | uhd-ea89fd0dd4e7bd9a4050f6ae2b79d3b359c60a9a.tar.gz uhd-ea89fd0dd4e7bd9a4050f6ae2b79d3b359c60a9a.tar.bz2 uhd-ea89fd0dd4e7bd9a4050f6ae2b79d3b359c60a9a.zip |
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.
Diffstat (limited to 'host/lib/include/uhdlib/rfnoc/rx_flow_ctrl_state.hpp')
-rw-r--r-- | host/lib/include/uhdlib/rfnoc/rx_flow_ctrl_state.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
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; |