From c13ba0d21f80fee022f31e13cad0c5b0aa712aaf Mon Sep 17 00:00:00 2001 From: Matthew Crymble Date: Mon, 3 Aug 2020 14:48:03 -0500 Subject: X300: fix for incorrect PCIe buffer size values added extra args to get PCIe buffer sizes from factory method --- host/lib/transport/nirio_link.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'host/lib/transport/nirio_link.cpp') diff --git a/host/lib/transport/nirio_link.cpp b/host/lib/transport/nirio_link.cpp index adef8b5a0..b5c4845d8 100644 --- a/host/lib/transport/nirio_link.cpp +++ b/host/lib/transport/nirio_link.cpp @@ -170,7 +170,9 @@ nirio_link::~nirio_link() nirio_link::sptr nirio_link::make(uhd::niusrprio::niusrprio_session::sptr fpga_session, const uint32_t instance, const uhd::transport::link_params_t& default_params, - const uhd::device_addr_t& hints) + const uhd::device_addr_t& hints, + size_t& recv_buff_size, + size_t& send_buff_size) { UHD_ASSERT_THROW(default_params.num_recv_frames != 0); UHD_ASSERT_THROW(default_params.num_send_frames != 0); @@ -292,6 +294,9 @@ nirio_link::sptr nirio_link::make(uhd::niusrprio::niusrprio_session::sptr fpga_s .str()); } + recv_buff_size = link_params.num_recv_frames * link_params.recv_frame_size; + send_buff_size = link_params.num_send_frames * link_params.send_frame_size; + return nirio_link::sptr(new nirio_link(fpga_session, instance, link_params)); } -- cgit v1.2.3