mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-23 04:28:09 +00:00
The trap policer set command allows the user to set the parameters of
the packet trap policer, such as rate and burst size. Example:
# devlink trap policer set netdevsim/netdevsim10 policer 1 rate 1000 burst 32
The trap policer show command allows the user to get the current
parameters of an individual policer or a dump of all policers in case
one is not specified. When '-s' is specified the policer's statistics
are shown. Example:
# devlink -jps trap policer show netdevsim/netdevsim10 policer 1
{
"trap_policer": {
"netdevsim/netdevsim10": [ {
"policer": 1,
"rate": 1000,
"burst": 32,
"stats": {
"rx": {
"dropped": 53
}
}
} ]
}
}
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
40 lines
870 B
Groff
40 lines
870 B
Groff
.TH DEVLINK\-MONITOR 8 "14 Mar 2016" "iproute2" "Linux"
|
|
.SH "NAME"
|
|
devlink-monitor \- state monitoring
|
|
.SH SYNOPSIS
|
|
.sp
|
|
.ad l
|
|
.in +8
|
|
.ti -8
|
|
.BR "devlink monitor" " [ " all " |"
|
|
.IR OBJECT-LIST " ]"
|
|
.sp
|
|
|
|
.SH DESCRIPTION
|
|
The
|
|
.B devlink
|
|
utility can monitor the state of devlink devices and ports
|
|
continuously. This option has a slightly different format. Namely, the
|
|
.B monitor
|
|
command is the first in the command line and then the object list.
|
|
|
|
.I OBJECT-LIST
|
|
is the list of object types that we want to monitor.
|
|
It may contain
|
|
.BR dev ", " port ", " health ", " trap ", " trap-group ", " trap-policer .
|
|
|
|
.B devlink
|
|
opens Devlink Netlink socket, listens on it and dumps state changes.
|
|
|
|
.SH SEE ALSO
|
|
.BR devlink (8),
|
|
.BR devlink-dev (8),
|
|
.BR devlink-sb (8),
|
|
.BR devlink-port (8),
|
|
.BR devlink-health (8),
|
|
.BR devlink-trap (8),
|
|
.br
|
|
|
|
.SH AUTHOR
|
|
Jiri Pirko <jiri@mellanox.com>
|