]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
inet: frags: get rif of inet_frag_evicting()
authorEric Dumazet <edumazet@google.com>
Thu, 13 Sep 2018 14:58:43 +0000 (07:58 -0700)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:48:01 +0000 (19:48 -0600)
commitea41b4d28c7c01b44c6acd03643adf821f4d33ff
tree6fbd780aae3f5859e154730f96ab81d845d74b3d
parent08002eb5f9863b9665b88a5aa34800223a3f376c
inet: frags: get rif of inet_frag_evicting()

BugLink: https://bugs.launchpad.net/bugs/1836117
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>
(cherry picked from commit 399d1404be660d355192ff4df5ccc3f4159ec1e4)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
include/net/inet_frag.h
net/ipv4/ip_fragment.c
net/ipv6/reassembly.c