devlink-trap man page

devlink-trap ā€” devlink trap configuration

Synopsis

devlink [ OPTIONS ] trap { COMMAND | help }

OPTIONS := { -v[erbose] | -s[tatistics] }

devlink trap show [ DEV trap TRAP ]

devlink trap set DEV trap TRAP [ action { trap | drop } ]

devlink trap group show [ DEV group GROUP ]

devlink trap group set DEV group GROUP [ action { trap | drop } ]

devlink trap help

Description

Examples

devlink trap show

List available packet traps.

devlink trap group show

List available packet trap groups.

devlink -vs trap show pci/0000:01:00.0 trap source_mac_is_multicast

Show attributes and statistics of a specific packet trap.

devlink -s trap group show pci/0000:01:00.0 group l2_drops

Show attributes and statistics of a specific packet trap group.

devlink trap set pci/0000:01:00.0 trap source_mac_is_multicast action trap

Set the action of a specific packet trap to 'trap'.

See Also

devlink(8), devlink-dev(8), devlink-monitor(8),

Author

Ido Schimmel <idosch@mellanox.com>

Referenced By

devlink(8), devlink-monitor(8).

2 August 2019 iproute2 Linux