diff options
author | Wade Fife <wade.fife@ettus.com> | 2021-11-15 17:15:53 -0600 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-12-08 12:09:39 -0800 |
commit | 551e1588ba2119a7a984f3482caff4fb1822c908 (patch) | |
tree | 6e95ec7331f5b22ebdbea21d05a9b5b5929e1d33 /host/lib | |
parent | c1465e606e01a5d11f87c32ab6adc171ff3cb619 (diff) | |
download | uhd-551e1588ba2119a7a984f3482caff4fb1822c908.tar.gz uhd-551e1588ba2119a7a984f3482caff4fb1822c908.tar.bz2 uhd-551e1588ba2119a7a984f3482caff4fb1822c908.zip |
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.
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/rfnoc/chdr_types.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<uint64_t>& src, uint64_t op_word = conv_byte_order(src.front()); ops_remaining = static_cast<size_t>(op_word & 0xFF); mgmt_op_t op(static_cast<mgmt_op_t::op_code_t>((op_word >> 8) & 0xFF), - static_cast<uint64_t>((op_word >> 16))); + static_cast<uint64_t>((op_word >> 16)), + static_cast<uint8_t>(op_word & 0xFF)); _ops.push_back(op); src.pop_front(); for (size_t i = 0; i < padding_size; i++) { |