diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c index 5bc13fe816d125780d1b5518560dda663817e80e..84adb5754c96548b9f5e25ee1041c04d0e7d2190 100644 --- a/net/ipv4/icmp.c +++ b/net/ipv4/icmp.c @@ -1165,6 +1165,10 @@ static int __net_init icmp_sk_init(struct net *net) sk->sk_sndbuf = (2 * ((64 * 1024) + sizeof(struct sk_buff))); + /* + * Speedup sock_wfree() + */ + sock_set_flag(sk, SOCK_USE_WRITE_QUEUE); inet_sk(sk)->pmtudisc = IP_PMTUDISC_DONT; }