Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions ansible/roles/vm_set/templates/sonic.xml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,18 @@
{% endif %}
</devices>
<seclabel type='dynamic' model='apparmor' relabel='yes'/>
{% if asic_type == 'vpp' %}
{#
Disable the virtio-net control-VQ VLAN filter for VPP DUTs. VPP/DPDK drives the
NIC directly and never registers VLANs with the virtio control plane, so with the
qemu default (ctrl_vlan=on) qemu silently drops every VLAN-tagged frame before it
reaches VPP. That breaks any VLAN sub-interface / L3 sub-port dataplane test (e.g.
iface_loopback_action) while leaving untagged traffic working. libvirt has no
attribute for this control, so it is set via a qemu -global override.
#}
<qemu:commandline>
<qemu:arg value='-global'/>
<qemu:arg value='virtio-net-pci.ctrl_vlan=off'/>
</qemu:commandline>
{% endif %}
</domain>
Loading