Skip to content
Commit 427f0c8c authored by Jethro Beekman's avatar Jethro Beekman Committed by David S. Miller
Browse files

macvlan: Add nodst option to macvlan type source



The default behavior for source MACVLAN is to duplicate packets to
appropriate type source devices, and then do the normal destination MACVLAN
flow. This patch adds an option to skip destination MACVLAN processing if
any matching source MACVLAN device has the option set.

This allows setting up a "catch all" device for source MACVLAN: create one
or more devices with type source nodst, and one device with e.g. type vepa,
and incoming traffic will be received on exactly one device.

v2: netdev wants non-standard line length

Signed-off-by: default avatarJethro Beekman <kernel@jbeekman.nl>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1e5e4acb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment