diff options
author | Sridhar Samudrala <sri@us.ibm.com> | 2010-10-28 09:10:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-22 11:24:29 -0500 |
commit | eb06acdc85585f28864261f28659157848762ee4 (patch) | |
tree | 8db786f687bfb8b969d00bb2695454938ea41f1d /lib/iommu-helper.c | |
parent | e5700c740da2cb9f5a3aa978cd1fa3a79916ba04 (diff) |
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>
Diffstat (limited to 'lib/iommu-helper.c')
0 files changed, 0 insertions, 0 deletions