[knet driver] don't unload knet drivers during shutdown (#2361)
knet driver unload takes about 30 seconds to remove netdevs. This cuts into our warm reboot time budget. Signed-off-by: Ying Xie <ying.xie@microsoft.com>
This commit is contained in:
parent
13e17d3a33
commit
790974eaa0
@ -6,7 +6,12 @@ Before=syncd.service
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=-/etc/init.d/opennsl-modules-4.9.0-7-amd64 start
|
||||
ExecStop=-/etc/init.d/opennsl-modules-4.9.0-7-amd64 stop
|
||||
# Don't remove opennsl driver when stopping service. Because
|
||||
# removing knet drivers takes ~30 seconds to delete netdevs.
|
||||
# This delay cuts too deep into warm reboot time budget.
|
||||
# We could skip this step because we don't expect stopping
|
||||
# opennsl service in any context other than rebooting.
|
||||
# ExecStop=-/etc/init.d/opennsl-modules-4.9.0-7-amd64 stop
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
|
Reference in New Issue
Block a user