Skip to content
Commit d70f2cf5 authored by Kevin Wallace's avatar Kevin Wallace Committed by David S. Miller
Browse files

macvlan: Support creating macvtaps from macvlans



When running in a network namespace whose only link to the outside
world is a macvlan device, not being able to create a macvtap off of
it is a real pain.

So modify macvtap creation to automatically forward a creation of a
macvtap on a macvlan to become a creation of a macvtap on the
underlying network device, just like is currently done with
macvlan-on-macvlan devices.

v2: Use netif_is_macvlan and macvlan_dev_real_dev helpers to make it
    more clear what we're doing.

Signed-off-by: default avatarKevin Wallace <kevin@pentabarf.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 426e1fa3
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