Skip to content

Commit

Permalink
[teamd] avoid using actor port number 0 in teamd config
Browse files Browse the repository at this point in the history
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 <ying.xie@microsoft.com>
  • Loading branch information
yxieca committed Dec 1, 2018
1 parent 405af31 commit 088e2a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libteam/0005-libteam-Add-warm_reboot-mode.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 088e2a1

Please sign in to comment.