]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
xfrm: interface: use icmp_ndo_send helper
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 11 Feb 2020 19:47:09 +0000 (20:47 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Apr 2021 16:31:42 +0000 (18:31 +0200)
commit9d56baeaeacfe144814145a34ad67c828d317ab7
tree7492b82ba59d2e068f641a8745927176812bef71
parente6b367e79190b1d1e1cb7695771493d9d60b838a
xfrm: interface: use icmp_ndo_send helper

BugLink: https://bugs.launchpad.net/bugs/1918974
commit 45942ba890e6f35232727a5fa33d732681f4eb9f upstream.

Because xfrmi is calling icmp from network device context, it should use
the ndo helper so that the rate limiting applies correctly.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
net/xfrm/xfrm_interface.c