About this task
Color counters and stream ID counters are not necessarily correlated. For instance an application that opens an existing stream ID with traffic assigned will not have correlated counters. To ensure that color counters and stream ID counters are correlated, follow these steps:
Procedure
- Delete the filters using the NTPL Delete command (see DN-0449).
- Deactivate the stream ID using the NTPL Setup command.
- Reset the statistics counters using the NT_StatOpen and NT_StatRead functions (see DN-0449).
- Open the stream ID using the NT_NetRxOpen function.
- Assign traffic using NTPL Assign command.
- Activate the stream ID using the NTPL Setup command.
- Flush the SDRAM by discarding packets from before the stream ID was deactivated using the NT_NetGetNextPacket function.