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
233233 * @DEVLINK_TRAP_ACTION_DROP: Packet is dropped by the device and a copy is not
234234 * sent to the CPU.
235235 * @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.
236238 */
237239 enum devlink_trap_action {
238240 DEVLINK_TRAP_ACTION_DROP,
239241 DEVLINK_TRAP_ACTION_TRAP,
242+ DEVLINK_TRAP_ACTION_MIRROR,
240243 };
241244
242245 /**