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)
commitb5c8b3fe8946c1927155599dfb79045477901009
treebe89386146a9adb3992682354754d16afebc8fb1
parent6cbd05b2d07a651e00c76d287a5f44994cbafe60
xfrm: no need to set DST_NOPOLICY in IPv4

This is a cleanup patch following commit e6175a2ed1f1
("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