启动时启用大容量接收器卸载

尝试在启动时启用大容量接收机卸载,但没有运气。

/etc/systemd/system/pxw-network-offload.service

[Unit] Description=PXW Network Offload After=network.target mlnx-en.d.service [Service] Type=oneshot ExecStart=/usr/local/sbin/pxw-network-offload.sh RemainAfterExit=true User=root [Install] WantedBy=multi-user.target 

所以我启用服务

 systemctl daemon-reload systemctl enable pxw-network-offload.service 

一切似乎都很好。 然而,在重新启动服务器….没有任何事情发生

ethtool lro留下来。 但是,如果我之后运行脚本:

 /usr/local/sbin/pxw-network-offload.sh 

它工作正常….