nmcli c reload ens33 (不会立即生效) # 重新载入网卡配置文件
nmcli c up ens33 (立即生效) # 重启网卡ens33
两条命令一起执行, 如果不行,可尝试以下命令
# 重载所有ifcfg或route到connection(不会立即生效)
nmcli c reload ifcfg-xxx
# 重载指定ifcfg或route到connection(不会立即生效)
nmcli c load etc/sysconfig/network-scripts/ifcfg-ethX
nmcli c load etc/sysconfig/network-scripts/route-ethX
# 立即生效connection,有3种方法
nmcli c up ethX
nmcli d reapply ethX
nmcli d connect ethX
void __tcp_push_pending_frames(struct sock *sk, unsigned int cur_mss,
int nonagle)
{
/* If we are closed, the bytes will have to remain here.
* In time closedown will finish, we empty the write queue and
* all will be happy.
*/
/* 该socket已经关闭,那么直接返回 */
if (unlikely(sk->sk_state == TCP_CLOSE))
return;
/* 发送数据 */
if (tcp_write_xmit(sk, cur_mss, nonagle, 0, GFP_ATOMIC))
tcp_check_probe_timer(sk); //发送数据失败,使用probe timer进行检查。
}