bridge: make user modified path cost sticky
authorstephen hemminger <stephen@networkplumber.org>
Sat, 13 Apr 2013 14:06:07 +0000 (14:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Apr 2013 18:03:44 +0000 (14:03 -0400)
commit8f3359bdc83f1abb1989e0817ab0e0b18667c828
tree445804a55d594511f181fda573faecc78604509a
parentf88c91ddba958e9a5dd4a5ee8c52a0faa790f586
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 <roopa@cumulusnetworks.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_if.c
net/bridge/br_private.h
net/bridge/br_stp_if.c