Add bonding driver to support creation of bond interface which composes of multiple slave interfaces. The slave interfaces could be physical interfaces, or just any virtual interfaces. For example, memif interfaces. The syntax to create a bond interface is create bond mode <lacp | xor | acitve-backup | broadcast | round-robin> To enslave an interface to the bond interface, enslave interface TenGigabitEthernet6/0/0 to BondEthernet0 Please see src/plugins/lacp/lacp_doc.md for more examples and additional options. LACP is a control plane protocol which manages and monitors the status of the slave interfaces. The protocol is part of 802.3ad standard. This patch implements LACPv1. LACPv2 is not supported. To enable LACP on the bond interface, specify "mode lacp" when the bond interface is created. The syntax to enslave a slave interface is the same as other bonding modes. Change-Id: I06581d3b87635972f9f0e1ec50b67560fc13e26c Signed-off-by: Steven <sluong@cisco.com>
48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
# Copyright (c) 2017 Cisco Systems, Inc.
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at:
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
vppplugins_LTLIBRARIES += lacp_plugin.la
|
|
vppapitestplugins_LTLIBRARIES += lacp_test_plugin.la
|
|
|
|
lacp_plugin_la_LIBADD =
|
|
lacp_plugin_la_SOURCES = lacp/lacp.c \
|
|
lacp/lacp_api.c \
|
|
lacp/selection.c \
|
|
lacp/rx_machine.c \
|
|
lacp/tx_machine.c \
|
|
lacp/mux_machine.c \
|
|
lacp/ptx_machine.c \
|
|
lacp/cli.c \
|
|
lacp/input.c \
|
|
lacp/node.c
|
|
|
|
lacp_test_plugin_la_SOURCES = \
|
|
lacp/lacp_test.c
|
|
|
|
noinst_HEADERS += lacp/protocol.h \
|
|
lacp/machine.h \
|
|
lacp/rx_machine.h \
|
|
lacp/tx_machine.h \
|
|
lacp/mux_machine.h \
|
|
lacp/ptx_machine.h \
|
|
lacp/node.h
|
|
|
|
nobase_apiinclude_HEADERS += \
|
|
lacp/lacp_all_api_h.h \
|
|
lacp/lacp_msg_enum.h \
|
|
lacp/lacp.api.h
|
|
|
|
API_FILES += lacp/lacp.api
|
|
|
|
# vi:syntax=automake
|