]> bbs.cooldavid.org Git - net-next-2.6.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)
commiteb06acdc85585f28864261f28659157848762ee4
tree8db786f687bfb8b969d00bb2695454938ea41f1d
parente5700c740da2cb9f5a3aa978cd1fa3a79916ba04
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