Lines Matching refs:if_id
101 info->if_id = nla_get_u32(tb[LWT_XFRM_IF_ID]); in xfrmi_build_state()
115 if (nla_put_u32(skb, LWT_XFRM_IF_ID, info->if_id) || in xfrmi_fill_encap_info()
148 static u32 xfrmi_hash(u32 if_id) in xfrmi_hash() argument
150 return hash_32(if_id, XFRMI_HASH_BITS); in xfrmi_hash()
158 for_each_xfrmi_rcu(xfrmn->xfrmi[xfrmi_hash(x->if_id)], xi) { in xfrmi_lookup()
159 if (x->if_id == xi->p.if_id && in xfrmi_lookup()
208 res->if_id = xfrm_input_state(skb)->if_id; in xfrmi_decode_session()
210 res->if_id = xi->p.if_id; in xfrmi_decode_session()
216 struct xfrm_if __rcu **xip = &xfrmn->xfrmi[xfrmi_hash(xi->p.if_id)]; in xfrmi_link()
227 for (xip = &xfrmn->xfrmi[xfrmi_hash(xi->p.if_id)]; in xfrmi_unlink()
274 for (xip = &xfrmn->xfrmi[xfrmi_hash(p->if_id)]; in xfrmi_locate()
277 if (xi->p.if_id == p->if_id) in xfrmi_locate()
369 md_dst->u.xfrm_info.if_id = x->if_id; in xfrmi_rcv_cb()
388 u32 if_id; in xfrmi_xmit2() local
397 if_id = md_info->if_id; in xfrmi_xmit2()
400 if_id = xi->p.if_id; in xfrmi_xmit2()
404 dst = xfrm_lookup_with_ifid(xi->net, dst, fl, NULL, 0, if_id); in xfrmi_xmit2()
415 if (x->if_id != if_id) in xfrmi_xmit2()
654 xi->p.if_id = p->if_id; in xfrmi_change()
764 parms->if_id = nla_get_u32(data[IFLA_XFRM_IF_ID]); in xfrmi_netlink_parms()
783 if (p.link || p.if_id) { in xfrmi_newlink()
792 if (!p.if_id) { in xfrmi_newlink()
825 if (!p.if_id) { in xfrmi_changelink()
869 nla_put_u32(skb, IFLA_XFRM_IF_ID, parm->if_id) || in xfrmi_fill_info()