mirror of
				https://github.com/Telecominfraproject/ols-nos.git
				synced 2025-11-04 03:57:57 +00:00 
			
		
		
		
	[syncd.sh] Don't stop sxdkernel during warm shutdown on Mellanox platform (#2572)
/etc/init.d/sxdkernel stop may take up to 15 sec which has impact on control plane downtime Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
This commit is contained in:
		
				
					committed by
					
						
						Ying Xie
					
				
			
			
				
	
			
			
			
						parent
						
							f98bec41c7
						
					
				
				
					commit
					2dd769bf46
				
			@@ -155,16 +155,11 @@ stop() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    # platform specific tasks
 | 
					    # platform specific tasks
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # stop mellanox driver regardless of
 | 
					    if [[ x"$WARM_BOOT" != x"true" ]]; then
 | 
				
			||||||
    # shutdown type
 | 
					 | 
				
			||||||
        if [ x$sonic_asic_platform == x'mellanox' ]; then
 | 
					        if [ x$sonic_asic_platform == x'mellanox' ]; then
 | 
				
			||||||
            /etc/init.d/sxdkernel stop
 | 
					            /etc/init.d/sxdkernel stop
 | 
				
			||||||
            /usr/bin/mst stop
 | 
					            /usr/bin/mst stop
 | 
				
			||||||
    fi
 | 
					        elif [ x$sonic_asic_platform == x'cavium' ]; then
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if [[ x"$WARM_BOOT" != x"true" ]]; then
 | 
					 | 
				
			||||||
        if [ x$sonic_asic_platform == x'cavium' ]; then
 | 
					 | 
				
			||||||
            /etc/init.d/xpnet.sh stop
 | 
					            /etc/init.d/xpnet.sh stop
 | 
				
			||||||
            /etc/init.d/xpnet.sh start
 | 
					            /etc/init.d/xpnet.sh start
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user