P4_MAX_PACKET_RATE

# set
<module-index>/<port-index> P4_MAX_PACKET_RATE <mode> <rate> <time_window>

# get
<module-index>/<port-index> P4_MAX_PACKET_RATE ?

Description

Specifies the maximum number of packets per second allowed to be transmitted on the port.

Actions

set, get

Parameters

mode: byte, specifies the mode of the max. pps mechanism
  • AUTOMATIC = 0

  • MANUAL = 1

rate: integer, maximum number of packets per second to transmit on this port

time_window: integer, time window [us] to measure the pps rate

Example

# set
input:  0/1 P4_MAX_PACKET_RATE AUTOMATIC 1 1
output: <OK>

# get
input:  0/1 P4_MAX_PACKET_RATE ?
output: 0/1 P4_MAX_PACKET_RATE AUTOMATIC 1 1