aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/device3/device3_flow_ctrl.hpp
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2018-10-23 12:25:51 -0700
committerAshish Chaudhari <ashish.chaudhari@ettus.com>2019-01-31 13:55:21 -0800
commit1292b3244f68c16086d325d5cdbec2d1f09c28a5 (patch)
tree31f6cf46380bebb0c7dfcdcf4b9e977dfaf395c5 /host/lib/usrp/device3/device3_flow_ctrl.hpp
parentac025ebf40ad9ab6cb9945e25bad87016ae77128 (diff)
downloaduhd-1292b3244f68c16086d325d5cdbec2d1f09c28a5.tar.gz
uhd-1292b3244f68c16086d325d5cdbec2d1f09c28a5.tar.bz2
uhd-1292b3244f68c16086d325d5cdbec2d1f09c28a5.zip
Device3: Fix flow control window and interval
Fixes streaming on E310 after BBFC changes. Signed-off-by: michael-west <michael.west@ettus.com>
Diffstat (limited to 'host/lib/usrp/device3/device3_flow_ctrl.hpp')
-rw-r--r--host/lib/usrp/device3/device3_flow_ctrl.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/usrp/device3/device3_flow_ctrl.hpp b/host/lib/usrp/device3/device3_flow_ctrl.hpp
index 535d7fbac..fd445effd 100644
--- a/host/lib/usrp/device3/device3_flow_ctrl.hpp
+++ b/host/lib/usrp/device3/device3_flow_ctrl.hpp
@@ -80,7 +80,8 @@ inline bool rx_flow_ctrl(
// Update counters assuming the buffer is a consumed packet
if (not packet_info.error) {
- fc_cache->total_bytes_consumed += buff->size();
+ const size_t bytes = 4 * (packet_info.num_header_words32 + packet_info.num_payload_words32);
+ fc_cache->total_bytes_consumed += bytes;
fc_cache->total_packets_consumed++;
}
}