From bff316562e95f2150cbbd4d81577cc863736148d Mon Sep 17 00:00:00 2001 From: Ying Xie Date: Sat, 1 Dec 2018 02:11:41 -0800 Subject: [PATCH] [teamd] avoid using actor port number 0 in teamd config (#2327) When using actor port number 0 in lag configuration, IO cannot be sent to peer. Increase actor port number by 1 to keep uniqueness and at the same time, avoid using actor port number 0. Ref. 802.1AX 6.3.4 Port identification Signed-off-by: Ying Xie --- src/libteam/0005-libteam-Add-warm_reboot-mode.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libteam/0005-libteam-Add-warm_reboot-mode.patch b/src/libteam/0005-libteam-Add-warm_reboot-mode.patch index 2f8277784672..625af96eaa16 100644 --- a/src/libteam/0005-libteam-Add-warm_reboot-mode.patch +++ b/src/libteam/0005-libteam-Add-warm_reboot-mode.patch @@ -264,7 +264,7 @@ index 81324de..9e88ce0 100644 + teamd_log_err("%s: Can't convert from port name to port id. Port id is equal to 0, but this is not expected", name); + } + -+ return htons(port_id); ++ return htons(port_id + 1); +} + static void lacp_port_actor_init(struct lacp_port *lacp_port)