]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/iplink_macvlan.c
macvlan/macvtap: support 'passthru' mode
authorSridhar Samudrala <sri@us.ibm.com>
Thu, 17 Mar 2011 00:01:58 +0000 (17:01 -0700)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Thu, 17 Mar 2011 00:01:58 +0000 (17:01 -0700)
commitf0612d566b8bb76866fa772076412d290ed4cf5e
tree2b9bbefb742954ff84b60ddd5e5efa2524733a92
parentfcae78992cab7bd267785b392b438306c621e583
macvlan/macvtap: support 'passthru' mode

Add support for 'passthru' mode when creating a macvlan/macvtap device
which allows takeover of the underlying device and passing it to a KVM
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>
ip/iplink_macvlan.c
ip/iplink_macvtap.c