linux-cp: fix multicast route setup with lcp-sync 41/43741/2
authorMatthew Smith <[email protected]>
Mon, 22 Sep 2025 13:32:29 +0000 (08:32 -0500)
committerBenoit Ganne <[email protected]>
Thu, 25 Sep 2025 12:30:30 +0000 (12:30 +0000)
commitbf440243c1f854a97e0084d268d68f5f5e8e2b9e
treeb33f152cd6c8a413e299e88bb93b4ea810bc0832
parent9d3c26218f3ce2951639e6b0f78733192f62e9ab
linux-cp: fix multicast route setup with lcp-sync

Type: fix
Fixes: 344dab5a22e1

Code which tries to avoid removing multicast routes prematurely or
adding them multiple times causes problems when lcp-sync is enabled. At
the time the decision is made whether this is the first interface
address added, multiple addresses may already configured on the VPP
interface. This causes the route to not be added.

Retain the check which avoids premature removal and remove the one
which tries to avoid adding the route multiple times. Adding the route
more than once is innocuous.

Signed-off-by: Matthew Smith <[email protected]>
Change-Id: I2a29f87db5ba97e847a6e29ad2283386b1f1dc7b
src/plugins/linux-cp/lcp_router.c