linux-cp: fix multicast route setup with lcp-sync 08/43808/1 stable/2510 v25.10-rc2
authorMatthew Smith <[email protected]>
Mon, 22 Sep 2025 13:32:29 +0000 (08:32 -0500)
committerMatthew Smith <[email protected]>
Wed, 8 Oct 2025 17:59:07 +0000 (17:59 +0000)
commitd4b00114c6215f8fedcdad57a9882346ace32cfe
tree991fd9ab5d5a22f02f333bcc06065aab33018148
parent4f366b5bb87314caf1cb6e9206a40371d642db11
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
(cherry picked from commit bf440243c1f854a97e0084d268d68f5f5e8e2b9e)
src/plugins/linux-cp/lcp_router.c