summaryrefslogtreecommitdiffstats
path: root/net/tipc/link.c
diff options
context:
space:
mode:
authorJon Maloy2018-02-14 13:34:39 +0100
committerDavid S. Miller2018-02-14 21:22:24 +0100
commit37c64cf63ba1f9c071b37a2129ae9860fd423d6c (patch)
tree9c4837a85252baa3e662757ae90f04caca2cd110 /net/tipc/link.c
parentMerge branch 'cxgb4-speed-up-reading-on-chip-memory' (diff)
downloadkernel-qcow2-linux-37c64cf63ba1f9c071b37a2129ae9860fd423d6c.tar.gz
kernel-qcow2-linux-37c64cf63ba1f9c071b37a2129ae9860fd423d6c.tar.xz
kernel-qcow2-linux-37c64cf63ba1f9c071b37a2129ae9860fd423d6c.zip
tipc: apply bearer link tolerance on running links
Currently, the default link tolerance set in struct tipc_bearer only has effect on links going up after that moment. I.e., a user has to reset all the node's links across that bearer to have the new value applied. This is too limiting and disturbing on a running cluster to be useful. We now change this so that also already existing links are updated dynamically, without any need for a reset, when the bearer value is changed. We leverage the already existing per-link functionality for this to achieve the wanted effect. Acked-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/link.c')
-rw-r--r--net/tipc/link.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c
index 2d6b2aed30e0..3c230466804d 100644
--- a/net/tipc/link.c
+++ b/net/tipc/link.c
@@ -2126,7 +2126,8 @@ void tipc_link_set_tolerance(struct tipc_link *l, u32 tol,
struct sk_buff_head *xmitq)
{
l->tolerance = tol;
- tipc_link_build_proto_msg(l, STATE_MSG, 0, 0, 0, tol, 0, xmitq);
+ if (link_is_up(l))
+ tipc_link_build_proto_msg(l, STATE_MSG, 0, 0, 0, tol, 0, xmitq);
}
void tipc_link_set_prio(struct tipc_link *l, u32 prio,