aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/transport/link_if.hpp
diff options
context:
space:
mode:
authorAlex Williams <alex.williams@ni.com>2019-08-09 11:18:35 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 11:49:38 -0800
commit01284980b1d7227f1c11496d2be939bb4b23adb1 (patch)
tree3bf21c2ece1296640a8854ea229960e5c937ebdd /host/lib/include/uhdlib/transport/link_if.hpp
parentaf5b2b5e778ead57b0fe9e72561227f1ebbbfc42 (diff)
downloaduhd-01284980b1d7227f1c11496d2be939bb4b23adb1.tar.gz
uhd-01284980b1d7227f1c11496d2be939bb4b23adb1.tar.bz2
uhd-01284980b1d7227f1c11496d2be939bb4b23adb1.zip
transport: Add modeling of physical adapters
Now link instances must have the ability to report the corresponding physical adapter that is used for the local side of the link. This information can be used to help identify when multiple links share the same adapter.
Diffstat (limited to 'host/lib/include/uhdlib/transport/link_if.hpp')
-rw-r--r--host/lib/include/uhdlib/transport/link_if.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/host/lib/include/uhdlib/transport/link_if.hpp b/host/lib/include/uhdlib/transport/link_if.hpp
index 60376e571..6f533603e 100644
--- a/host/lib/include/uhdlib/transport/link_if.hpp
+++ b/host/lib/include/uhdlib/transport/link_if.hpp
@@ -4,6 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
+#include <uhd/transport/adapter_id.hpp>
#include <uhd/transport/frame_buff.hpp>
#include <memory>
@@ -51,6 +52,11 @@ public:
*/
virtual void release_send_buff(frame_buff::uptr buff) = 0;
+ /*!
+ * Get the physical adapter id used for this link
+ */
+ virtual adapter_id_t get_send_adapter_id() const = 0;
+
send_link_if() = default;
send_link_if(const send_link_if&) = delete;
send_link_if& operator=(const send_link_if&) = delete;
@@ -91,6 +97,11 @@ public:
*/
virtual void release_recv_buff(frame_buff::uptr buff) = 0;
+ /*!
+ * Get the physical adapter ID used for this link
+ */
+ virtual adapter_id_t get_recv_adapter_id() const = 0;
+
recv_link_if() = default;
recv_link_if(const recv_link_if&) = delete;
recv_link_if& operator=(const recv_link_if&) = delete;