Skip to content

Commit 6f11563

Browse files
Fan Duklassert
authored andcommitted
xfrm: Force SA to be lookup again if SA in acquire state
If SA is in the process of acquiring, which indicates this SA is more promising and precise than the fall back option, i.e. using wild card source address for searching less suitable SA. So, here bail out, and try again. Signed-off-by: Fan Du <fan.du@windriver.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
1 parent b324187 commit 6f11563

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/xfrm/xfrm_state.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr,
815815
xfrm_state_look_at(pol, x, fl, encap_family,
816816
&best, &acquire_in_progress, &error);
817817
}
818-
if (best)
818+
if (best || acquire_in_progress)
819819
goto found;
820820

821821
h_wildcard = xfrm_dst_hash(net, daddr, &saddr_wildcard, tmpl->reqid, encap_family);

0 commit comments

Comments
 (0)