platform: adjust route weight before applying it to kernel

Merged Fernando Fernández Mancera requested to merge ff/ipv4_ecmp_fixes into main

When applying the ECMP nexthops to kernel we need to decrease the value by one. This is also done by other tools like iproute2.

Fixes: 1bbdecf5 ('platform: manage ECMP routes')

Merge request reports