diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-09-06 10:23:13 +0200 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-09-16 11:26:24 -0700 |
commit | 8ff0011cae0af5cdb5ef9a35952c61310e06499d (patch) | |
tree | c1828664d8238699ac980621581b8e4fc50d39de /host/lib | |
parent | a270c531f07ea3549ec2f3b69a38b2c5298bf47c (diff) | |
download | uhd-8ff0011cae0af5cdb5ef9a35952c61310e06499d.tar.gz uhd-8ff0011cae0af5cdb5ef9a35952c61310e06499d.tar.bz2 uhd-8ff0011cae0af5cdb5ef9a35952c61310e06499d.zip |
x300: Remove unused variables in x300_eth_mgr.cpp
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/x300/x300_eth_mgr.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/host/lib/usrp/x300/x300_eth_mgr.cpp b/host/lib/usrp/x300/x300_eth_mgr.cpp index b52c11f51..3650b8753 100644 --- a/host/lib/usrp/x300/x300_eth_mgr.cpp +++ b/host/lib/usrp/x300/x300_eth_mgr.cpp @@ -226,19 +226,11 @@ both_links_t eth_manager::get_links(link_type_t link_type, // a DMA FIFO, which is a device-specific thing. So punt on that for now. x300_eth_conn_t conn = eth_conns[local_device_id]; - zero_copy_xport_params default_buff_args; const bool enable_fc = not link_args.has_key("enable_fc") || uhd::cast::from_str<bool>(link_args.get("enable_fc")); const bool lossy_xport = enable_fc; - const size_t send_mtu = get_mtu(uhd::TX_DIRECTION); - const size_t recv_mtu = get_mtu(uhd::RX_DIRECTION); - - // Set size and number of frames - default_buff_args.send_frame_size = std::min(send_mtu, ETH_MSG_FRAME_SIZE); - default_buff_args.recv_frame_size = std::min(recv_mtu, ETH_MSG_FRAME_SIZE); - // Buffering is done in the socket buffers, so size them relative to // the link rate link_params_t default_link_params; |