aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport
Commit message (Collapse)AuthorAgeFilesLines
* uhd: Update license headersMartin Braun2018-02-1941-37/+78
| | | | | | | All copyright is now attributed to "Ettus Research, a National Instruments company". SPDX headers were also updated to latest version 3.0.
* Move all license headers to SPDX format.Martin Braun2017-12-2239-682/+253
|
* Fix build with Boost 1.66ilovezfs2017-12-193-3/+3
| | | | Thanks to FX Coudert for suggesting this fix.
* transport: nirio_zero_copy: Remove redundant buffer poolsMoritz Fischer2017-10-111-5/+0
| | | | | | | Remove the redundant send/recv buffer_pools from nirio_zero_copy_impl class as no one is using them. Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* transport: liberio: Check return values for liberio_chan_set_fixed_size()Moritz Fischer2017-10-101-4/+10
| | | | | | | Check return value of liberio_chan_set_fixed_size() since it can fail, and bad things happen if one just proceeds. Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* transport: liberio: Fix bug with recv timeout conversionMoritz Fischer2017-10-051-3/+3
| | | | | | | | | | | | | The timeout value passed in by UHD would get multiplied by USEC, to convert from the UHD value in seconds to the liberio value in microseconds. The bug manifested itself by calling liberio_dequeue_buf() with a timeout equivalent to 100s. Fixes ed1c64c81 ('transport: Added liberio_zero_copy transport ...') Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com> Cc: Alex Williams <alex.williams@ni.com>
* transport: liberio: Fix indentsMoritz Fischer2017-10-051-4/+4
| | | | | | | Remove stray tabs from liberio_zero_copy transport and clarify actual code flow by fixing indent. Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* udp: Modify log messages of UDP transportMartin Braun2017-10-042-10/+27
| | | | | - Remove multi-line log message for socket creation - Include local addr and port in trace messages
* udp: Added option to query local address of socketMartin Braun2017-10-042-1/+25
|
* transport: Added liberio_zero_copy transport implementationMoritz Fischer2017-08-073-0/+304
| | | | | | | | | | | | This adds a zero copy transport using the liberio library. Currently supported API version for liberio is 0.3, this might still very much break, since the library is still in development. So far nobody uses it UHD so we might as well merge it. Signed-off-by: Alex Williams <alex.williams@ni.com> Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* utils: add set_thread_name API call, move thread_priority to threadAndrej Rode2017-06-292-0/+3
|
* uhd: Replaced many lexical_cast with appropriate C++11 equivalentsMartin Braun2017-06-292-4/+3
|
* x300: Added location info to FW ctrl error messagesAshish Chaudhari2017-06-151-0/+4
|
* Merge branch 'maint'Martin Braun2017-05-032-171/+79
|\
| * PCIe: Fix runtime page size acquisition and page size alignment checks for ↵Michael West2017-04-201-1/+38
| | | | | | | | nirio_zero_copy transport.
| * Revert commit e348353c4f5acef6a5ece11e9c336df4c15d65e1.Michael West2017-04-201-170/+41
| | | | | | | | | | Worker threads significantly increased CPU load and did not increase performance as expected.
* | add windows get_local_port()Andrej Rode2017-04-141-0/+10
| |
* | transports: Added get_local_port() method to UDP transportsAndrej Rode2017-04-141-0/+1
| |
* | logging: remove unecessery newlines in log messagesAndrej Rode2017-04-071-1/+1
| |
* | transport: Fix some nullptr vs NULL vs 0Martin Braun2017-04-061-2/+2
| | | | | | | | This affects some versions of Clang when using C++11 features.
* | transport: Fixed UHD logging post-mergeMartin Braun2017-04-061-2/+1
| |
* | Merge branch 'maint'Martin Braun2017-04-064-41/+421
|\|
| * Implement worker threads to offload conversion of data and transport I/OMichael West2017-04-051-41/+170
| | | | | | | | | | for send() calls. - One worker thread per channel provides for improved scalability
| * PCIe: Add checks to make sure buffers are page alighed (requirement ofMichael West2017-04-051-0/+23
| | | | | | | | NI-RIO driver)
| * Added class to add flow control to any zero_copy_if interface.michael-west2017-04-052-0/+228
| |
* | logging: Demoted a number of DEBUG messages to TRACEMartin Braun2017-04-057-13/+13
| |
* | Merge branch 'maint'Martin Braun2017-03-312-7/+9
|\|
| * NI-RIO: FIFO management optimizations for PCIe performancePatrick Sisterhen2017-03-292-7/+9
| | | | | | | | | | | | | | Pre-acquiring as much buffer as possible When acquiring during a streaming operation, acquire a minimum amount (frame size) or the amount we know is acquire-able Adding docstrings to nirio_fifo Making const-qualifying consistent
* | Merge branch 'maint'Martin Braun2017-03-242-8/+11
|\|
| * UDP: Set default socket buffer size to number of frames * 9000 (maximum ↵michael-west2017-03-212-8/+11
| | | | | | | | Ethernet MTU)
* | utils: introduce new logging API and remove msg APIAndrej Rode2017-02-2012-56/+56
| |
* | uhd: Replace NULL with nullptr in if_addrs and super_recv_packet_handlerAndrej Rode2017-02-202-7/+7
| | | | | | | | | | This is not a functional change, but it marks the usage of nullptr in UHD. Commits past this one may also use this C++11 feature.
* | UDP transport: Utilize poll instead of selectPaul David2017-02-131-0/+12
| | | | | | | | | | | | - Avoids the descriptor limit of 1024 on FD_SETSIZE - Fixes a buffer overflow due to that limit - Keeps select around for Windows compatibility
* | uhd: replace BOOST_FOREACH with C++11 range-based for loopAndrej Rode2017-02-104-9/+5
|/ | | | | Note: This is the first commit that uses for-range, and range-based for-loops are now usable for UHD development.
* transport: Fixed memory leak in muxed_zero_copy_ifMartin Braun2016-11-281-2/+2
|
* transport: Removed some superfluous variablesMartin Braun2016-11-283-8/+6
|
* Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width ↵Martin Braun2016-11-0814-125/+125
| | | | | | | | types) - Also removes all references to boost/cstdint.hpp and replaces it with stdint.h (The 'correct' replacement would be <cstdint>, but not all of our compilers support that).
* X300: Fix for recv timeout and wait_for_ack errors over PCIe.michael-west2016-11-081-9/+59
| | | | | | - Reduced allocation of buffers for each control stream. - Copied contol data into new managed buffer so managed buffer of base transport could be released.
* CMake: fix the lvbitx path on windowsPaul David2016-10-261-6/+6
|
* transport: Removed conditional compiles for terminator APIsMartin Braun2016-09-052-14/+2
|
* Merge branch 'UHD-3.9.LTS' into maintMartin Braun2016-09-021-3/+8
|\ | | | | | | | | | | | | | | This provides the GPS fixes. Conflicts: host/CMakeLists.txt tools/debs/upload_debs.sh
| * N200: Simplify GPSDO UART so it does not strip or add charactersmichael-west2016-09-021-4/+1
| |
| * GPSDO: Make sure read_uart() returns only complete strings for all devices.michael-west2016-09-021-3/+11
| |
| * transport: Also send flow control ACKs on sequence errorsMartin Braun2016-03-161-0/+6
| |
* | Merging RFNoC support for X310Martin Braun2016-08-092-13/+90
| |
* | usb: usb_dummy made to match usb_control and usb_zero_copyMartin Braun2016-08-021-2/+10
| |
* | usb: tweak types for consistency between LIBUSB API calls and internal UHD ↵Michael Dickens2016-08-012-8/+8
| | | | | | | | usage of returned values.
* | usb: add virtual destructors where needed; make virtual destructors ↵Michael Dickens2016-08-014-20/+73
| | | | | | | | out-of-line from class definition to reduce number of vtables emitted (according to clang).
* | usb: fix interfaces to be type 'int' and endpoints to be type 'unsigned ↵Michael Dickens2016-08-012-11/+11
| | | | | | | | char' to match the libusb API.
* | usb: fix 'timeout' variables to be unsigned since that is what the ↵Michael Dickens2016-08-011-1/+1
| | | | | | | | 'libusb_control_transfer' API uses.