PS_PACKETLIMIT

code: 154

# set
<module-index>/<port-index> PS_PACKETLIMIT [<stream_index>] <packet_count>

# get
<module-index>/<port-index> PS_PACKETLIMIT [<stream_index>] ?

Description

Based on different port transmission mode, the meaning of this API is different. When Port TX Mode is set to NORMAL, STRICT UNIFORM or BURST: The number of packets that will be transmitted when traffic is started on a port. A value of 0 or -1 makes the stream transmit continuously. When Port TX Mode is set to SEQUENTIAL: The number of sequential packets sent before switching to the next stream. The minimum value is 1. The port will transmit continuously until the user stops the traffic.

Actions

set, get

Parameters

  1. packet_count: integer, the number of packets

Example

# set
input:  0/1 PS_PACKETLIMIT [0] 1
output: <OK>

# get
input:  0/1 PS_PACKETLIMIT [0] ?
output: 0/1 PS_PACKETLIMIT [0] 1