Page MenuHomeVyOS Platform

VPP: a commit on an untagged bridge/xconnect member disables promisc mode and drops transit traffic
In progress, NormalPublicBUG

Description

A port that is an untagged member of a VPP bridge-domain or xconnect loses promiscuous mode on any commit under its interfaces ethernet node, for example a description:

set interfaces ethernet eth1 description x
commit

After that the NIC drops unicast frames for other MACs, which is the traffic the bridge or xconnect carries. Traffic entering that port is lost in one direction; the port stays up, and VPP's counters do not show the drop. It stays like this until VPP restarts (reboot or a vpp commit).

One-way UDP through the bridge/xconnect, 300 datagrams per direction, after the commit (2 runs each):

NIC model / L2 mode         1.5.1       rolling    
e1000   xconnect            no loss     loss (2/2)  
igb     xconnect            no loss     loss (2/2)  
e1000e  bridge              no loss     loss (2/2)
virtio (userspace) bridge   no loss     loss (2/2) 
virtio (vhost-net) bridge   no loss     no loss

QEMU's query-rx-filter shows promiscuous: false for the port after the commit on rolling and RC2. vhost-net does not apply that filter, so it hides the problem. Physical NICs filter unicast in hardware; not measured here.

Cause
T9018 (5c5716a84, https://github.com/vyos/vyos-1x/pull/5314) calls vpp_api.set_promisc(ifname, enable=needs_promisc) on every interfaces ethernet commit (src/conf_mode/interfaces_ethernet.py). needs_promisc is true only for interfaces with vif/vif-s or VPP bond members, so an untagged bridge/xconnect member gets promiscuous mode turned off. VPP had enabled it when the port joined the bridge/xconnect; the bridge/xconnect scripts do not run again after an ethernet commit, so nothing turns it back on.

Suggested fix
Also keep promiscuous mode for VPP bridge-domain and xconnect members, or only ever enable it from this script and never disable it.

Details

Version
rolling, 1.5
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Related Objects

Event Timeline

natali-rs1985 changed the task status from Open to In progress.Thu, Nov 26, 9:06 AM
natali-rs1985 claimed this task.
natali-rs1985 triaged this task as Normal priority.
natali-rs1985 changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.