]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
macvlan: Support creating macvlans from macvlans
authorEric Biederman <ebiederm@aristanetworks.com>
Fri, 13 Mar 2009 20:15:37 +0000 (13:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Mar 2009 20:15:37 +0000 (13:15 -0700)
commitb0832a2961022a076c812384435b5f0290b3fc91
treeca4d0a09e9aabc00f1960a8fb4f2ebd82f49ba8f
parentf7efb6ccc2113911e4e064f78bcd0343c4673038
macvlan: Support creating macvlans from macvlans

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

So modify macvlan creation to allow automatically forward
a creation of a macvlan on a macvlan to become a creation
of a macvlan on the underlying network device.

Signed-off-by: Eric Biederman <ebiederm@aristanetworks.com>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c