Subject: Re: [Patch net, v2] net: xfrm: skip policies marked as dead while reinserting policies

From: Florian Westphal <[email-masked]>
Date: Tue, 15 Aug 2023 08:04:54 +0200

Leon Romanovsky <[email-masked]> wrote:
> >  		dir = xfrm_policy_id2dir(policy->index);
> > -		if (policy->walk.dead || dir >= XFRM_POLICY_MAX)
> > +		if (dir >= XFRM_POLICY_MAX)
> 
> This change is unnecessary, previous code was perfectly fine.

Are you sure? AFAICS walker struct has no 'index' member.