aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-15 18:47:07 -0700
committerJosh Blum <josh@joshknows.com>2010-07-15 18:47:07 -0700
commit8171547b6cf8eaf95901f6f4fbc47c1720caf39a (patch)
tree0ace191758ecc5aecc96f1b1adc5efc40abfe22d /host/lib
parentdfc0da5aa95a35b8ace4eb8b46986e0576c62337 (diff)
downloaduhd-8171547b6cf8eaf95901f6f4fbc47c1720caf39a.tar.gz
uhd-8171547b6cf8eaf95901f6f4fbc47c1720caf39a.tar.bz2
uhd-8171547b6cf8eaf95901f6f4fbc47c1720caf39a.zip
usrp2: remove mb intervention on outgoing packets
Diffstat (limited to 'host/lib')
-rwxr-xr-xhost/lib/transport/gen_vrt_if_packet.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/transport/gen_vrt_if_packet.py b/host/lib/transport/gen_vrt_if_packet.py
index 7438f5ff4..dbe026ba3 100755
--- a/host/lib/transport/gen_vrt_if_packet.py
+++ b/host/lib/transport/gen_vrt_if_packet.py
@@ -141,11 +141,17 @@ void vrt::if_hdr_unpack_$(suffix)(
){
//extract vrt header
boost::uint32_t vrt_hdr_word = $(XE_MACRO)(packet_buff[0]);
+ /*
size_t packet_words32 = vrt_hdr_word & 0xffff;
//failure case
if (if_packet_info.num_packet_words32 < packet_words32)
throw std::runtime_error("bad vrt header or packet fragment");
+ */
+ //Fix for short packets sent from the fpga:
+ // Use the num_packet_words32 passed in as input,
+ // and do not use the header bits which could be wrong.
+ size_t packet_words32 = if_packet_info.num_packet_words32;
//extract fields from the header
if_packet_info.packet_type = if_packet_info_t::packet_type_t(vrt_hdr_word >> 29);