Skip to content

Commit bff3165

Browse files
yxiecalguohan
authored andcommitted
[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 <[email protected]>
1 parent ac2be9d commit bff3165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libteam/0005-libteam-Add-warm_reboot-mode.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ index 81324de..9e88ce0 100644
264264
+ 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);
265265
+ }
266266
+
267-
+ return htons(port_id);
267+
+ return htons(port_id + 1);
268268
+}
269269
+
270270
static void lacp_port_actor_init(struct lacp_port *lacp_port)

0 commit comments

Comments
 (0)