From 4514cd2b489d5a9ab4eb22162d979a7217be8701 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 21 Aug 2014 10:26:42 +0200 Subject: b100: More RX buffers Increases number of recv frames where recv_frame_size is min'd with 2K (B100_MAX_PKT_BYTE_LIMIT), therefore increasing buffer slack. --- host/lib/usrp/b100/usb_zero_copy_wrapper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/host/lib/usrp/b100/usb_zero_copy_wrapper.cpp b/host/lib/usrp/b100/usb_zero_copy_wrapper.cpp index 451cdae50..d646fcc94 100644 --- a/host/lib/usrp/b100/usb_zero_copy_wrapper.cpp +++ b/host/lib/usrp/b100/usb_zero_copy_wrapper.cpp @@ -55,6 +55,7 @@ public: index++; //advances the caller's buffer //hold a copy of the buffer shared pointer + UHD_ASSERT_THROW(not _mrb); _mrb = mrb; //extract this packet's memory address and length in bytes @@ -199,7 +200,7 @@ public: } size_t get_num_recv_frames(void) const{ - return _internal_zc->get_num_recv_frames(); + return (_internal_zc->get_num_recv_frames()*_internal_zc->get_recv_frame_size())/this->get_recv_frame_size(); } size_t get_recv_frame_size(void) const{ -- cgit v1.2.3