]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
networkd: call link_set_routing_policy_rule before setting routes (#7815)
authorSusant Sahani <145210+ssahani@users.noreply.github.com>
Tue, 9 Jan 2018 08:13:06 +0000 (13:43 +0530)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 9 Jan 2018 08:13:06 +0000 (09:13 +0100)
commit27c34f732e7767b5cdc90fe7ad03ae0ea625671c
tree1a17fe53cad916825416e0db4a0e59178eebf997
parent009e9fbcfdcf0462604e3eb000c0546503511f06
networkd: call link_set_routing_policy_rule before setting routes (#7815)

commit 7715629 (networkd: Fix race condition in [RoutingPolicyRule] handling (#7615)).
Does not fix race. Still there is a race in case of bride because the
bride goes down and up .

calling route_configure then link_set_routing_policy_rule and the
link_check_ready makes a race between routing_policy_rule_messages and route_messages.
While bride comes up and we call the call again route_configure if finds
it self in the callback function LINK_STATE_CONFIGURED networkd dies.
Let's handle first routing policy rules then route_configure. This fixes
the crash.
Closes #7797
src/network/networkd-link.c