lacp: passive mode support [VPP-1551] 35/18035/4
authorSteven Luong <sluong@cisco.com>
Tue, 5 Mar 2019 17:38:33 +0000 (09:38 -0800)
committerDamjan Marion <dmarion@me.com>
Wed, 3 Apr 2019 16:32:37 +0000 (16:32 +0000)
commit82c5dda455ce56ffaf8813b7fbee661e6dbb7cea
tree0a4b607e46396ac28fe7f573b6b237de4ed8c16d
parent5ae793ac4e5b3fa288ed5838d8d92ce15eb950bd
lacp: passive mode support [VPP-1551]

By definition, passive mode means the node does not start sending lacp pdu until
it first hears from the partner or remote.

- Rename ptx machine's BEGIN state to NO_PERIODIC state.
- Put periodic machine in NO_PERIDOIC state when the interface is enabled for
lacp. ptx machine will transition out of NO_PERIODIC state when the local node
hears from the remote or when the local node is configured for active mode.
- Also add send and receive statistics for debugging.

Change-Id: I747953b9595ed31328b2f4f3e7a8d15d01e04d7f
Signed-off-by: Steven Luong <sluong@cisco.com>
src/plugins/lacp/cli.c
src/plugins/lacp/input.c
src/plugins/lacp/lacp.c
src/plugins/lacp/ptx_machine.c
src/plugins/lacp/ptx_machine.h
src/plugins/lacp/rx_machine.c
src/plugins/lacp/tx_machine.c
src/vnet/bonding/node.h