tipc: fix link priority propagation
authorRichard Alpe <richard.alpe@ericsson.com>
Mon, 1 Feb 2016 07:19:57 +0000 (08:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Feb 2016 07:45:38 +0000 (02:45 -0500)
commit817298102b0bc936b08dfcc5fbcc2213157050f2
treec434db2622b6f960a3594b08484336ba99580d72
parentd01332f1acacc0cb43a61f4244dd2b846d4cd585
tipc: fix link priority propagation

Currently link priority changes isn't handled for active links. In
this patch we resolve this by changing our priority if the peer passes
a valid priority in a state message.

Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/link.c