]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip: Add nodst option to macvlan type source
authorJethro Beekman <kernel@jbeekman.nl>
Sat, 24 Apr 2021 21:28:59 +0000 (23:28 +0200)
committerDavid Ahern <dsahern@kernel.org>
Wed, 28 Apr 2021 15:45:59 +0000 (15:45 +0000)
commitd56dcd3549545be937f944ef7b237aef9fde04f7
tree847a47b953ce0b835cf2f7291934492375bbd2bb
parente5f1505e53a98ce4c6092112ecd6515d51d0b759
ip: 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.

Signed-off-by: Jethro Beekman <kernel@jbeekman.nl>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/iplink_macvlan.c
man/man8/ip-link.8.in