[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 <ying.xie@microsoft.com>
This commit is contained in:
Ying Xie 2018-12-01 02:11:41 -08:00 committed by lguohan
parent ac2be9d99a
commit bff316562e

View File

@ -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)