From 2f97f8bd0167d4179427efa8a955046fbf417e91 Mon Sep 17 00:00:00 2001 From: Aaron Rossetto Date: Fri, 27 Sep 2019 14:56:25 -0500 Subject: transport: Implement eov indications for Rx and Tx streams --- host/lib/include/uhdlib/rfnoc/chdr_rx_data_xport.hpp | 2 ++ host/lib/include/uhdlib/rfnoc/chdr_tx_data_xport.hpp | 2 ++ 2 files changed, 4 insertions(+) (limited to 'host/lib/include/uhdlib/rfnoc') diff --git a/host/lib/include/uhdlib/rfnoc/chdr_rx_data_xport.hpp b/host/lib/include/uhdlib/rfnoc/chdr_rx_data_xport.hpp index 9c5d88066..3333f4f9d 100644 --- a/host/lib/include/uhdlib/rfnoc/chdr_rx_data_xport.hpp +++ b/host/lib/include/uhdlib/rfnoc/chdr_rx_data_xport.hpp @@ -108,6 +108,7 @@ public: struct packet_info_t { bool eob = false; + bool eov = false; bool has_tsf = false; uint64_t tsf = 0; size_t payload_bytes = 0; @@ -347,6 +348,7 @@ private: packet_info_t info; info.eob = header.get_eob(); + info.eov = header.get_eov(); info.has_tsf = optional_time.is_initialized(); info.tsf = optional_time ? *optional_time : 0; info.payload_bytes = _recv_packet->get_payload_size(); diff --git a/host/lib/include/uhdlib/rfnoc/chdr_tx_data_xport.hpp b/host/lib/include/uhdlib/rfnoc/chdr_tx_data_xport.hpp index 1e54a2f7a..8658767b6 100644 --- a/host/lib/include/uhdlib/rfnoc/chdr_tx_data_xport.hpp +++ b/host/lib/include/uhdlib/rfnoc/chdr_tx_data_xport.hpp @@ -112,6 +112,7 @@ public: struct packet_info_t { bool eob = false; + bool eov = false; bool has_tsf = false; uint64_t tsf = 0; size_t payload_bytes = 0; @@ -226,6 +227,7 @@ public: } _send_header.set_eob(info.eob); + _send_header.set_eov(info.eov); _send_header.set_seq_num(_data_seq_num++); _send_packet->refresh(buff->data(), _send_header, tsf); -- cgit v1.2.3