]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
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)
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>

No differences found