Commit graph

7 commits

Author SHA1 Message Date
Aaron Rossetto
2f134ac1a7 tests: Add unit test for USE_MAP action forwarding policy
This commit adds a unit test for the USE_MAP action forwarding policy.
2020-05-28 14:49:32 -05:00
Martin Braun
876d4150aa uhd: Apply clang-format against all .cpp and .hpp files in host/
Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of
files that clang-format gets applied against.
2020-03-03 08:51:32 -06:00
Martin Braun
83abb81e61 rfnoc: actions: Allow sending actions to self
Sending actions to self is useful because calling post_action() from
within an action handler will not actually trigger the action. Instead,
it will defer delivery of the action. Allowing sending actions to self
will allow to add another action, in deterministic order, and the
execution of another action handler.
2019-11-26 11:49:32 -08:00
Martin Braun
053306f293 rfnoc: actions: Add dictionary to all actions
This can be used to set arbitrary key/value pairs on the action object.
Easier to use than serialization, but doesn't require custom types,
either.
2019-11-26 11:49:32 -08:00
Martin Braun
0f87181769 rfnoc: graph: Add commit/release API 2019-11-26 11:49:23 -08:00
Martin Braun
15c058015f rfnoc: Use RTTI "serialization" for stream commands
A small modification to rfnoc::action_info makes it polymorphic, and
instead of serializing data structures into a string, this allows
creating custom action objects and identifying them via RTTI. The stream
command action object is a good example for how to use this, so all the
usages of stream command action objects were converted to this scheme.
2019-11-26 11:49:18 -08:00
Martin Braun
b8a6c64d60 rfnoc: Add action API
- Added action_info class
- Allow to send actions from node to node
- Allow to post actions into nodes
- Allow to set default forwarding policies
- Added unit tests
2019-11-26 11:49:14 -08:00