History

devlink: Add 'mirror' trap action

The action is used by control traps such as IGMP query. The packet is flooded by the device, but also trapped to the CPU in order for the software bridge to mark the receiving port as a multicast router port. Such packets are marked with 'skb->offload_fwd_mark = 1' in order to prevent the software bridge from flooding them again.

Ido Schimmel committed 6 years ago

Commit 9eefeab1 parent 85176f13 files · +7 −1Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/devlink.h+3−0
@@ -233,10 +233,13 @@ enum { · 232 unmodified lines
233 * @DEVLINK_TRAP_ACTION_DROP: Packet is dropped by the device and a copy is not233 * @DEVLINK_TRAP_ACTION_DROP: Packet is dropped by the device and a copy is not
234 * sent to the CPU.234 * sent to the CPU.
235 * @DEVLINK_TRAP_ACTION_TRAP: The sole copy of the packet is sent to the CPU.235 * @DEVLINK_TRAP_ACTION_TRAP: The sole copy of the packet is sent to the CPU.
236 * @DEVLINK_TRAP_ACTION_MIRROR: Packet is forwarded by the device and a copy is
237 * sent to the CPU.
236 */238 */
237enum devlink_trap_action {239enum devlink_trap_action {
238 DEVLINK_TRAP_ACTION_DROP,240 DEVLINK_TRAP_ACTION_DROP,
239 DEVLINK_TRAP_ACTION_TRAP,241 DEVLINK_TRAP_ACTION_TRAP,
242 DEVLINK_TRAP_ACTION_MIRROR,
240};243};
241 244
242/**245/**