aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/transport/get_aligned_buffs.hpp
diff options
context:
space:
mode:
authorCiro Nishiguchi <ciro.nishiguchi@ni.com>2019-08-27 16:19:15 -0500
committerMartin Braun <martin.braun@ettus.com>2019-11-26 11:49:45 -0800
commit98209df92ea2a6abf6ed41af03bc3909b8e152b9 (patch)
treeb794f5def785ea46304ea8ea4d95ea814adb422b /host/lib/include/uhdlib/transport/get_aligned_buffs.hpp
parent745fbf19bc22e98cee42acac04cda28c5f9bcbd4 (diff)
downloaduhd-98209df92ea2a6abf6ed41af03bc3909b8e152b9.tar.gz
uhd-98209df92ea2a6abf6ed41af03bc3909b8e152b9.tar.bz2
uhd-98209df92ea2a6abf6ed41af03bc3909b8e152b9.zip
streamer: Add option to ignore sequence errors
Add template parameter to ignore sequence errors, used for testing.
Diffstat (limited to 'host/lib/include/uhdlib/transport/get_aligned_buffs.hpp')
-rw-r--r--host/lib/include/uhdlib/transport/get_aligned_buffs.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/include/uhdlib/transport/get_aligned_buffs.hpp b/host/lib/include/uhdlib/transport/get_aligned_buffs.hpp
index 662be6d2d..d0f5682ca 100644
--- a/host/lib/include/uhdlib/transport/get_aligned_buffs.hpp
+++ b/host/lib/include/uhdlib/transport/get_aligned_buffs.hpp
@@ -27,7 +27,7 @@ constexpr size_t ALIGNMENT_FAILURE_THRESHOLD = 1000;
* match those of other channels due to dropped packets. Packets that do not
* have a tsf are not checked for alignment and never dropped.
*/
-template <typename transport_t>
+template <typename transport_t, bool ignore_seq_err = false>
class get_aligned_buffs
{
public:
@@ -144,7 +144,8 @@ public:
// If this packet had a sequence error, stop to return the error.
// Keep the packet for the next call to get_aligned_buffs.
- if (seq_error) {
+ if (seq_error && !ignore_seq_err) {
+ UHD_LOG_FASTPATH("D");
return SEQUENCE_ERROR;
}
}