diff --git a/src/libteam/0005-when-port-status-is-disabled-it-could-not-handle-lacpdu-frame.patch b/src/libteam/0005-when-port-status-is-disabled-it-could-not-handle-lacpdu-frame.patch new file mode 100644 index 000000000000..6ab55448bdbf --- /dev/null +++ b/src/libteam/0005-when-port-status-is-disabled-it-could-not-handle-lacpdu-frame.patch @@ -0,0 +1,15 @@ +diff --git a/teamd/teamd_runner_lacp.c b/teamd/teamd_runner_lacp.c +index 9c77fae..276b3b0 100644 +--- a/teamd/teamd_runner_lacp.c ++++ b/teamd/teamd_runner_lacp.c +@@ -1091,6 +1112,10 @@ static int lacpdu_recv(struct lacp_port *lacp_port) + return err; + } + ++ /* Bug, if lacp_port status is PORT_STATE_DISABLED, We should not handle any LACPDU */ ++ if ( lacp_port->state == PORT_STATE_DISABLED ) ++ return 0; ++ + err = lacp_port_set_state(lacp_port, PORT_STATE_CURRENT); + if (err) + return err; diff --git a/src/libteam/Makefile b/src/libteam/Makefile index a20f8dbd35b0..152f8dc51122 100644 --- a/src/libteam/Makefile +++ b/src/libteam/Makefile @@ -19,6 +19,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : git apply ../0002-libteam-Temporarily-remove-redundant-debug-mes.patch git apply ../0003-teamd-lacp-runner-will-send-lacp-update-right-after-.patch git apply ../0004-libteam-Add-lacp-fallback-support-for-single-member-.patch + git apply ../0005-when-port-status-is-disabled-it-could-not-handle-lacpdu-frame.patch popd # Obtain debian packaging