]> git.baikalelectronics.ru Git - kernel.git/commit
macvlan: Introduce 'passthru' mode to takeover the underlying device
authorSridhar Samudrala <sri@us.ibm.com>
Thu, 28 Oct 2010 13:10:50 +0000 (13:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Nov 2010 16:24:29 +0000 (08:24 -0800)
commit716c00dbd7781c13de0dd3fbac303994009bc37a
tree8db786f687bfb8b969d00bb2695454938ea41f1d
parentccb44157e467dae3062418dfa8829530ffc6ed56
macvlan: Introduce 'passthru' mode to takeover the underlying device

With the current default 'vepa' mode, a KVM guest using virtio with
macvtap backend has the following limitations.
- cannot change/add a mac address on the guest virtio-net
- cannot create a vlan device on the guest virtio-net
- cannot enable promiscuous mode on guest virtio-net

To address these limitations, this patch introduces a new mode called
'passthru' when creating a macvlan device which allows takeover of the
underlying device and passing it to a guest using virtio with macvtap
backend.

Only one macvlan device is allowed in passthru mode and it inherits
the mac address from the underlying device and sets it in promiscuous
mode to receive and forward all the packets.

Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
-------------------------------------------------------------------------
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c
include/linux/if_link.h