From 1292b3244f68c16086d325d5cdbec2d1f09c28a5 Mon Sep 17 00:00:00 2001 From: michael-west Date: Tue, 23 Oct 2018 12:25:51 -0700 Subject: Device3: Fix flow control window and interval Fixes streaming on E310 after BBFC changes. Signed-off-by: michael-west --- host/lib/usrp/device3/device3_flow_ctrl.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/lib/usrp/device3/device3_flow_ctrl.hpp') 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++; } } -- cgit v1.2.3