diff options
author | Martin Braun <martin.braun@ettus.com> | 2014-08-21 10:26:42 +0200 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-08-21 11:26:07 +0200 |
commit | 4514cd2b489d5a9ab4eb22162d979a7217be8701 (patch) | |
tree | fff46cfe316a24567a3736c0ecc6cb0e634b5131 | |
parent | 2de96cd57c3f19bfa778ccad280ad19170af0967 (diff) | |
download | uhd-4514cd2b489d5a9ab4eb22162d979a7217be8701.tar.gz uhd-4514cd2b489d5a9ab4eb22162d979a7217be8701.tar.bz2 uhd-4514cd2b489d5a9ab4eb22162d979a7217be8701.zip |
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.
-rw-r--r-- | host/lib/usrp/b100/usb_zero_copy_wrapper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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{ |