Subject: Re: [PATCH][next] xfrm: optimise xfrm_policy_lookup_bytype

From: Steffen Klassert <[email-masked]>
Date: Tue, 12 May 2015 13:37:47 +0200

On Tue, May 12, 2015 at 04:25:07PM +0800, Li RongQing wrote:
> On Mon, May 11, 2015 at 8:06 PM, Steffen Klassert
> <[email-masked]> wrote:
> >
> > priority is initialized with ~0U at the beginning of this function.
> > What if someone has an inexact policy with priority ~0U configured?
> > With your change, this policy will never match because we don't even
> > try to search for it.
> 
> The original code can not handle this kind of policy whose priority is ~0U,

Right, these kind of policies are currently not enforced.

> I will fix it when resubmit this patch.

OK, thanks!