teamd: lacp: make sure that lacp_port_agg_update() works with correct unselectable state

In case of checking unselectable port state, lacp_port_agg_update()
is checking the new one during port state change. This is wrong as it
should check the old one. Move the state setting into
lacp_port_agg_update() and rename the function accordingly.

Signed-off-by: Jiri Pirko <>
1 file changed