1DEVLINK-TRAP(8) Linux DEVLINK-TRAP(8)
2
3
4
6 devlink-trap - devlink trap configuration
7
9 devlink [ OPTIONS ] trap { COMMAND | help }
10
11
12 OPTIONS := { -v[erbose] | -s[tatistics] }
13
14 devlink trap show [ DEV trap TRAP ]
15
16 devlink trap set DEV trap TRAP [ action { trap | drop } ]
17
18 devlink trap group show [ DEV group GROUP ]
19
20 devlink trap group set DEV group GROUP [ action { trap | drop } ]
21
22 devlink trap help
23
24
26 devlink trap show - display available packet traps and their attributes
27 DEV - specifies the devlink device from which to show packet traps. If
28 this argument is omitted all packet traps of all devices are listed.
29
30
31 trap TRAP - specifies the packet trap. Only applicable if a devlink
32 device is also specified.
33
34
35 devlink trap set - set attributes of a packet trap
36 DEV - specifies the devlink device the packet trap belongs to.
37
38
39 trap TRAP - specifies the packet trap.
40
41
42 action { trap | drop }
43 packet trap action.
44
45 trap - the sole copy of the packet is sent to the CPU.
46
47 drop - the packet is dropped by the underlying device and a copy
48 is not sent to the CPU.
49
50
51 devlink trap group show - display available packet trap groups and their
52 attributes
53 DEV - specifies the devlink device from which to show packet trap
54 groups. If this argument is omitted all packet trap groups of all
55 devices are listed.
56
57
58 group GROUP - specifies the packet trap group. Only applicable if a
59 devlink device is also specified.
60
61
62 devlink trap group set - set attributes of a packet trap group
63 DEV - specifies the devlink device the packet trap group belongs to.
64
65
66 group GROUP - specifies the packet trap group.
67
68
69 action { trap | drop }
70 packet trap action. The action is set for all the packet traps
71 member in the trap group. The actions of non-drop traps cannot
72 be changed and are thus skipped.
73
74
76 devlink trap show
77 List available packet traps.
78
79 devlink trap group show
80 List available packet trap groups.
81
82 devlink -vs trap show pci/0000:01:00.0 trap source_mac_is_multicast
83 Show attributes and statistics of a specific packet trap.
84
85 devlink -s trap group show pci/0000:01:00.0 group l2_drops
86 Show attributes and statistics of a specific packet trap group.
87
88 devlink trap set pci/0000:01:00.0 trap source_mac_is_multicast action
89 trap
90 Set the action of a specific packet trap to 'trap'.
91
92
94 devlink(8), devlink-dev(8), devlink-monitor(8),
95
96
98 Ido Schimmel <idosch@mellanox.com>
99
100
101
102iproute2 2 August 2019 DEVLINK-TRAP(8)