Message ID | 20241115083343.2340827-12-steffen.klassert@secunet.com (mailing list archive) |
---|---|
State | Accepted |
Commit | a35672819f8d85e2ae38b80d40b923e3ef81e4ea |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [01/11] xfrm: Add support for per cpu xfrm state handling. | expand |
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index e3266a5d4f90..67ca7ac955a3 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -1470,6 +1470,7 @@ xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr, x->km.state = XFRM_STATE_ACQ; x->dir = XFRM_SA_DIR_OUT; list_add(&x->km.all, &net->xfrm.state_all); + h = xfrm_dst_hash(net, daddr, saddr, tmpl->reqid, encap_family); XFRM_STATE_INSERT(bydst, &x->bydst, net->xfrm.state_bydst + h, x->xso.type);