projectcalico / calico

Cloud native networking and network security
https://docs.tigera.io/calico/latest/about/
Apache License 2.0
6.04k stars 1.35k forks source link

Calico eBPF mode: support VLAN-based traffic #9401

Open e-nikolaev opened 3 weeks ago

e-nikolaev commented 3 weeks ago

According to Calico eBPF documentation "VLAN-based traffic not supported". I need clarification: does this mean that if a Calico node is connected to a physical network via a sub-interface, the eBPF mode will not be activated? Is this true for both overlay and non-overlay modes? What is the limitation of the lack of vlan support? Which specific Calico component does not support vlan? I quickly looked through the source code, but didn't find any restrictions.

tomastigera commented 3 weeks ago

The documentation means that we cannot have calico attached to a device that sees VLAN traffic. The code does not support it. Such traffic would be dropped as corrupted packets.

It is ok, to have your nodes connected to the network via a vlan device and configure calico using bpfDataIfacePattern to exclude the main device and include the vlan device from its control. Say you exclude bond0 but you include bond0.1010 from that pattern.

We are working on automating that process.