]> git.baikalelectronics.ru Git - kernel.git/commit
ipvlan: play well with macvlan device
authorMahesh Bandewar <maheshb@google.com>
Sat, 6 Dec 2014 23:53:19 +0000 (15:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 21:10:06 +0000 (16:10 -0500)
commitd8accab5ac4e5d35f758a6aa919601d28c90ed7e
treedac83cf25f3b5407ec27ca7d73210f2ef49a2584
parent0e656ef78dae8076191dbeff696f7b7e8f5ea29d
ipvlan: play well with macvlan device

If a device is already a macvlan port then refuse to use it as
an ipvlan port in the early stage of port creation.

thost1:~# ip link add link eth0 mvl0 type macvlan
thost1:~# echo $?
0
thost1:~# ip link add link eth0 ipvl0 type ipvlan
RTNETLINK answers: Device or resource busy
thost1:~# echo $?
2
thost1:~#

Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan_main.c