File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ AX_ADD_AM_MACRO_STATIC([])
1717
1818AM_CONDITIONAL(SONIC_ASIC_PLATFORM_BAREFOOT, test x$CONFIGURED_PLATFORM = xbarefoot)
1919AM_CONDITIONAL(SONIC_ASIC_PLATFORM_BROADCOM, test x$CONFIGURED_PLATFORM = xbroadcom)
20+ AM_CONDITIONAL(SONIC_ASIC_PLATFORM_MELLANOX, test x$CONFIGURED_PLATFORM = xmellanox)
21+
22+ AM_COND_IF([ SONIC_ASIC_PLATFORM_MELLANOX] ,
23+ AC_DEFINE ( [ MELLANOX] , [ 1] , [ Define to 1 on Mellanox Platform] ) )
2024
2125AC_ARG_ENABLE ( debug ,
2226[ --enable-debug turn on debugging] ,
Original file line number Diff line number Diff line change 1+ #include " config.h"
12#include " Syncd.h"
23#include " VidManager.h"
34#include " NotificationHandler.h"
@@ -4729,7 +4730,15 @@ void Syncd::run()
47294730
47304731 m_mdioIpcServer->stopMdioThread ();
47314732
4732- sai_status_t status = removeAllSwitches ();
4733+ sai_status_t status = SAI_STATUS_SUCCESS;
4734+ #ifdef MELLANOX
4735+ if (shutdownType != SYNCD_RESTART_TYPE_COLD)
4736+ {
4737+ status = removeAllSwitches ();
4738+ }
4739+ #else
4740+ status = removeAllSwitches ();
4741+ #endif
47334742
47344743 // Stop notification thread after removing switch
47354744 m_processor->stopNotificationsProcessingThread ();
You can’t perform that action at this time.
0 commit comments