xfrm: optimise to search the inexact policy list
authorLi RongQing <roy.qing.li@gmail.com>
Thu, 14 May 2015 03:16:59 +0000 (11:16 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 18 May 2015 08:31:56 +0000 (10:31 +0200)
The policies are organized into list by priority ascent of policy,
so it is unnecessary to continue to loop the policy if the priority
of current looped police is larger than or equal priority which is
from the policy_bydst list.

This allows to match policy with ~0U priority in inexact list too.

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c

Simple merge