[pve-devel] [PATCH] support QinQ / vlan stacking

Andrew Thrift andrew at networklabs.co.nz
Tue Feb 24 04:45:42 CET 2015


We have found you need to nest the bridges to get QinQ to work in all
scenarios.
e.g. The above patch will work for MOST scenarios, but if you attach a vlan
aware VM to the parent vmbr0 bridge it will cause traffic to the VM's to
stop, or will not be able to see the tagged frames.

The patch we use only has one other minor change:

-        activate_bridge_vlan_slave($bridgevlan, $iface, $tag);
+        activate_bridge_vlan_slave($bridgevlan, $bridge, $tag);


On Sat, Feb 14, 2015 at 9:41 PM, Stefan Priebe <s.priebe at profihost.ag>
wrote:

>
> Signed-off-by: Stefan Priebe <s.priebe at profihost.ag>
> ---
>  data/PVE/Network.pm |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/data/PVE/Network.pm b/data/PVE/Network.pm
> index 00639f6..97f4033 100644
> --- a/data/PVE/Network.pm
> +++ b/data/PVE/Network.pm
> @@ -323,7 +323,7 @@ sub activate_bridge_vlan {
>
>      my @ifaces = ();
>      my $dir = "/sys/class/net/$bridge/brif";
> -    PVE::Tools::dir_glob_foreach($dir, '((eth|bond)\d+)', sub {
> +    PVE::Tools::dir_glob_foreach($dir, '((eth|bond)\d+(\.\d+)?)', sub {
>          push @ifaces, $_[0];
>      });
>
> --
> 1.7.10.4
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20150224/215ec3ae/attachment.htm>


More information about the pve-devel mailing list