SolarCapture C Bindings User Guide  SF-115721-CD
Draft 2A
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sc_sim_work Node Reference

Simulate doing CPU intensive work on each packet.

Detailed Description

Simulate the behaviour of a node that performs CPU intensive work on the packets it handles.

Arguments

Argument Optional? Default Type Description
per_packet_ns Yes 0 SC_PARAM_INT Amount of per-packet work
per_batch_ns Yes 0 SC_PARAM_INT Amount of per-batch work
touch_wrapper Yes 0 SC_PARAM_INT Whether to touch per-packet wrapper
touch_payload Yes 0 SC_PARAM_INT Whether to read frame data