This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/src
pavel-shirshov 1f516920e1
teamd: lacp: update port state according to partner's sync bit (#2793)
Backport of
54f137c105

According to 6.4.15 of IEEE 802.1AX-2014, Figure 6-22, the state that the
port is selected moves MUX state from DETACHED to ATTACHED.

But ATTACHED state does not mean that the port can send and receive user
frames. COLLECTING_DISTRIBUTION state is the state that the port can send
and receive user frames. To move MUX state from ATTACHED to
COLLECTING_DISTRIBUTION, the partner state should be sync as well as the
port selected.

In function lacp_port_actor_update(), only INFO_STATE_SYNCHRONIZATION
should be set to the actor.state when the port is selected.
INFO_STATE_COLLECTING and INFO_STATE_DISTRIBUTING should be set to false
with ATTACHED mode and set to true when INFO_STATE_SYNCHRONIZATION of
partner.state is set.

In function lacp_port_should_be_{enabled, disabled}(), we also need to
check the INFO_STATE_SYNCHRONIZATION bit of partner.state.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
2019-04-16 19:11:24 -07:00
..
bash Fix for bash's memory-leak (#1879) 2018-07-27 17:46:33 -07:00
gobgp Update go version to 1.11.2 for gobgp and telemetry (#2230) 2018-11-09 21:56:39 -08:00
hiredis [config]: Add SONIC_CONFIG_MAKE_JOBS (#784) 2017-07-07 15:32:50 +03:00
initramfs-tools [baseimage]: Build specific revision of initramfs-tools (#1957) 2018-08-21 00:00:46 -07:00
iproute2 [vs]: add vlan configuration support in virtual switch (#1200) 2017-11-30 14:59:25 -08:00
isc-dhcp [security] patch the code for DSA-4133-1 isc-dhcp -- security update (#2142) 2018-10-12 16:00:51 -07:00
ixgbe Upgrade linux-image version (#1294) 2018-01-31 11:39:48 -08:00
libnl3 [libnl3]: Backup libnl3 source packages in Azure Storage (#1799) 2018-06-19 21:09:08 -07:00
libteam teamd: lacp: update port state according to partner's sync bit (#2793) 2019-04-16 19:11:24 -07:00
lldpd [lldpd]: Use kernel autoprobe for netlink socket .nl_pid portion of the address (#2164) 2018-10-17 19:32:27 -07:00
lm-sensors [pmon]: fix lm-sensors binaries build (#2749) 2019-04-05 15:10:54 -07:00
mpdecimal [config]: Add SONIC_CONFIG_MAKE_JOBS (#784) 2017-07-07 15:32:50 +03:00
ptf@aac6efd0a7 [src/ptf update]: Submodule update (#652) 2017-05-31 10:48:00 -07:00
python3 [config]: Add SONIC_CONFIG_MAKE_JOBS (#784) 2017-07-07 15:32:50 +03:00
python-click Build python-click Debian package from version 6.7-4 source to fix CLI autocomplete/suggest (#1824) 2018-06-29 09:59:46 -07:00
redis [dockers]: Upgrade database and telemetry docker to stretch build (#2541) 2019-02-08 22:05:38 -08:00
redis-dump-load@832a645e4d Build patched redis-dump-load (#2277) 2018-11-20 19:27:56 -08:00
redis-dump-load.patch Build patched redis-dump-load (#2277) 2018-11-20 19:27:56 -08:00
smartmontools [docker-platform-monitor]: Add smartmontools 6.6-1 (#2703) 2019-04-10 21:55:54 -07:00
snmpd [dockers]: Upgrade SNMP docker to stretch build (#2620) 2019-04-16 18:35:04 -07:00
socat [socat]: build socat with readline (#1919) 2018-08-13 01:12:58 -07:00
sonic-config-engine [sonic-cfggen]: Output differences for bgp configurations (#2768) 2019-04-10 22:55:54 -07:00
sonic-daemon-base Refactored daemon base API: added Logger. (#2672) 2019-04-04 16:12:59 +03:00
sonic-dbsyncd@fe60afa7e2 [submodule]: update sonic-dbsyncd 2019-02-12 06:20:36 +00:00
sonic-device-data [kvm]: support for all hwsku in kvm switch (#2495) 2019-01-30 02:04:20 -08:00
sonic-frr [docker-frr]: Move FRR from 4.0 to 6.0.2 and make the new frr version and debian package compile (#2454) 2019-01-16 18:34:41 -08:00
sonic-linux-kernel@69ba0c13f6 [submodule] update sonic-linux-kernel (#2637) 2019-03-06 00:18:06 -08:00
sonic-platform-common@92b54b1984 [dockers]: Upgrade SNMP docker to stretch build (#2620) 2019-04-16 18:35:04 -07:00
sonic-platform-daemons@c8931f30a0 [submodule]: update submodules to pick up pmon refactoring commits (#2710) 2019-04-03 22:02:57 -07:00
sonic-py-swsssdk@4cee385349 [sonic-py-swsssdk] Update submodule (#2660) 2019-03-19 11:58:20 -07:00
sonic-quagga@e5ede97424 [vstest]: Test for quagga livelock fix (#2751) 2019-04-09 09:03:25 -07:00
sonic-sairedis@e8cb879659 [submodule]: submodule update for PFC watchdog warm reboot commits (#2755) 2019-04-12 10:21:32 -07:00
sonic-snmpagent@70a6c7dad4 [dockers]: Upgrade SNMP docker to stretch build (#2620) 2019-04-16 18:35:04 -07:00
sonic-swss@e329dbdf66 [submodule]: submodule update for PFC watchdog warm reboot commits (#2755) 2019-04-12 10:21:32 -07:00
sonic-swss-common@8af58ad80d [submodule]: submodule update for PFC watchdog warm reboot commits (#2755) 2019-04-12 10:21:32 -07:00
sonic-utilities@6ee0aea0e5 [submodule]: submodule update for PFC watchdog warm reboot commits (#2755) 2019-04-12 10:21:32 -07:00
supervisor [supervisor] Fix crash if system clock rolls back within startsecs; Refactor patch (#2624) 2019-03-04 09:15:11 -08:00
tacacs tacacs management vrf changes (#2217) 2018-12-04 10:22:48 -08:00
telemetry [build] Enable streaming telemetry Docker container by default (#2354) 2019-02-28 16:27:29 -08:00
thrift [thrift] add a patch to revert THRIFT-3650 (#2688) 2019-03-20 17:40:22 -07:00