aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-11-24 15:51:29 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-12-03 11:35:04 -0800
commit5df498aeb985b40d72fa5165366e903351369f91 (patch)
tree654ab5906dacb1bd7bc81495b34e5d05d535f474 /host/tests
parentb49e4f1eb62081a035c8d2e1d7b50e65e027ad72 (diff)
downloaduhd-5df498aeb985b40d72fa5165366e903351369f91.tar.gz
uhd-5df498aeb985b40d72fa5165366e903351369f91.tar.bz2
uhd-5df498aeb985b40d72fa5165366e903351369f91.zip
rfnoc: Enable drop counter on chdr_ctrl_endpoint
This class has a member _num_drops, which can be read out using the get_num_drops() API call. However, when dropping packets, this counter was not incremented, which is fixed now. This also includes a very minor optimization from 2 map<> lookups to 1 lookup (they are in O(log N)). Since there are usually a small two-digit number of endpoints connected to the async message receiver, this change is not expected to yield major improvements, but the lookup *is* in a hot loop.
Diffstat (limited to 'host/tests')
0 files changed, 0 insertions, 0 deletions