]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: no need to set DST_NOPOLICY in IPv4
authorEyal Birger <eyal.birger@gmail.com>
Fri, 20 May 2022 10:48:45 +0000 (13:48 +0300)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 10 Jun 2022 09:01:36 +0000 (11:01 +0200)
commita9223f820c63ce5476d1906e92633303c1c4204d
treebe89386146a9adb3992682354754d16afebc8fb1
parenteea05233682bc5809ce2308298f6b76751433f9a
xfrm: no need to set DST_NOPOLICY in IPv4

This is a cleanup patch following commit 7fed1a8a3596
("xfrm: fix "disable_policy" flag use when arriving from different devices")
which made DST_NOPOLICY no longer be used for inbound policy checks.

On outbound the flag was set, but never used.

As such, avoid setting it altogether and remove the nopolicy argument
from rt_dst_alloc().

Signed-off-by: Eyal Birger <eyal.birger@gmail.com>
Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
drivers/net/vrf.c
include/net/route.h
net/ipv4/route.c