Flush port in both worm-reboot and fast-reboot mode on exit. Otherwise teamd will stuck (#3512)

This commit is contained in:
pavel-shirshov 2019-09-25 16:08:44 -07:00 committed by Ying Xie
parent e7f1d4f3e2
commit 301c69b098

View File

@ -108,7 +108,7 @@ index 9dc85b5..679da49 100644
+ teamd_refresh_ports(ctx); + teamd_refresh_ports(ctx);
+ if (ctrl_byte == 'w') + if (ctrl_byte == 'w')
+ teamd_ports_flush_data(ctx); + teamd_ports_flush_data(ctx);
+ } else { + /* Flush ports to destroy port object */
+ err = teamd_flush_ports(ctx); + err = teamd_flush_ports(ctx);
+ if (err) + if (err)
+ return err; + return err;