Re: [PATCH ipsec-next] xfrm: no need to set DST_NOPOLICY in IPv4

From: Nicolas Dichtel
Date: Fri May 20 2022 - 08:01:36 EST



Le 20/05/2022 à 12:48, Eyal Birger a écrit :
> 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@xxxxxxxxx>
Reviewed-by: Nicolas Dichtel <nicolas.dichtel@xxxxxxxxx>