Thread (2 messages) flat view 2 messages, 2 authors, 2016-07-05

Re: [PATCH net] bonding: fix enslavement slave link notifications

From: David Miller <davem@davemloft.net>
Date: 2016-07-05 19:13:16

From: Saeed Mahameed <redacted>
Date: Tue,  5 Jul 2016 12:09:47 +0300
From: Aviv Heller <redacted>

Currently, link notifications are not sent by
bond_set_slave_link_state() upon enslavement if
the slave is enslaved when up.

This happens because slave->link default init value
is 0, which is the same as BOND_LINK_UP, resulting
in bond_set_slave_link_state() ignoring this transition.

This patch sets the default value of slave->link to
BOND_LINK_NOCHANGE, assuring it will count as a state
transition and thus trigger notification logic.

Signed-off-by: Aviv Heller <redacted>
Reviewed-by: Jiri Pirko <redacted>
Signed-off-by: Saeed Mahameed <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help