sonic-net / sonic-platform-vpp

Apache License 2.0
39 stars 23 forks source link

Race condition causing loopback address lost #111

Closed yue-fred-gao closed 1 week ago

yue-fred-gao commented 3 weeks ago

When sonic-vpp receives ROUTE_ENTRY create, it will remove the Loopback interface in kernel and recreate it via vpp lcp create. And reset the address to Loopback interface after that. When there are multiple loopback addresses (for example, one v4 and one v6 address) configured in a short time, such as loading mini-graph, the second loopback address will be lost due to this race condition. When it recreate the Loopback interface and reconfigure the first loopback address, the second address is lost.

yue-fred-gao commented 1 week ago

Fixed by PR #113