From fe3fa1dd31b6da9c90cf181d64d6829313804cdd Mon Sep 17 00:00:00 2001 From: Sugandha Gupta Date: Fri, 25 Jan 2019 17:36:26 -0800 Subject: device3: Constraint send/recv_frame_size based on down/upstream MTU We need to properly contraint the send/recv_frame_size based on the minimum MTU of all the down/upstream blocks. This fixes the issue with E310 tx/rx streaming as it has smaller MTU sizes than the other usrps. --- host/lib/usrp/x300/x300_impl.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host/lib/usrp/x300/x300_impl.hpp') diff --git a/host/lib/usrp/x300/x300_impl.hpp b/host/lib/usrp/x300/x300_impl.hpp index c101b3032..8d50f9914 100644 --- a/host/lib/usrp/x300/x300_impl.hpp +++ b/host/lib/usrp/x300/x300_impl.hpp @@ -173,6 +173,9 @@ private: const xport_type_t xport_type, const uhd::device_addr_t& args); + //! get mtu + size_t get_mtu(const size_t, const uhd::direction_t); + struct frame_size_t { size_t recv_frame_size; -- cgit v1.2.3