bridge: make user modified path cost sticky

Keep a STP port path cost value if it was set by a user.
Don't replace it with the link-speed based path cost
whenever the link goes down and comes back up.

Reported-by: Roopa Prabhu <>
Signed-off-by: Stephen Hemminger <>
Signed-off-by: David S. Miller <>
3 files changed