diff options
author | Li RongQing <roy.qing.li@gmail.com> | 2015-05-14 06:16:59 +0300 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2015-05-18 11:31:56 +0300 |
commit | 8faf491e642011f449d6405be52bedb70964aed6 (patch) | |
tree | f6a3f84e5169862c2d0c4bf1ae2d538cdd3d5eab /fs | |
parent | de2ad486cb6cfdf3ef79a96a18d78bb1b135c0e0 (diff) | |
download | linux-8faf491e642011f449d6405be52bedb70964aed6.tar.xz |
xfrm: optimise to search the inexact policy list
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>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions