From 551e1588ba2119a7a984f3482caff4fb1822c908 Mon Sep 17 00:00:00 2001 From: Wade Fife Date: Mon, 15 Nov 2021 17:15:53 -0600 Subject: rfnoc: Add ops pending to management op The ops pending for each operation was stored implicitly in the data structure. This adds it explicitly, which is useful for debugging and packet dissection. --- host/lib/rfnoc/chdr_types.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/lib') diff --git a/host/lib/rfnoc/chdr_types.cpp b/host/lib/rfnoc/chdr_types.cpp index aea76dbc4..d5600c1dd 100644 --- a/host/lib/rfnoc/chdr_types.cpp +++ b/host/lib/rfnoc/chdr_types.cpp @@ -450,7 +450,8 @@ void mgmt_hop_t::deserialize(std::list& src, uint64_t op_word = conv_byte_order(src.front()); ops_remaining = static_cast(op_word & 0xFF); mgmt_op_t op(static_cast((op_word >> 8) & 0xFF), - static_cast((op_word >> 16))); + static_cast((op_word >> 16)), + static_cast(op_word & 0xFF)); _ops.push_back(op); src.pop_front(); for (size_t i = 0; i < padding_size; i++) { -- cgit v1.2.3