inet: frags: get rif of inet_frag_evicting()
authorEric Dumazet <edumazet@google.com>
Sat, 31 Mar 2018 19:58:51 +0000 (12:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Apr 2018 03:25:39 +0000 (23:25 -0400)
commit399d1404be660d355192ff4df5ccc3f4159ec1e4
treeca1e2d86cb32a06d91c35632ad19b5393be21a66
parent6befe4a78b1553edb6eed3a78b4bcd9748526672
inet: frags: get rif of inet_frag_evicting()

This refactors ip_expire() since one indentation level is removed.

Note: in the future, we should try hard to avoid the skb_clone()
since this is a serious performance cost.
Under DDOS, the ICMP message wont be sent because of rate limits.

Fact that ip6_expire_frag_queue() does not use skb_clone() is
disturbing too. Presumably IPv6 should have the same
issue than the one we fixed in commit ec4fbd64751d
("inet: frag: release spinlock before calling icmp_send()")

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_frag.h
net/ipv4/ip_fragment.c
net/ipv6/reassembly.c