Lines Matching refs:tid
42 u64 tid;
108 static inline u32 gtp0_hashfn(u64 tid)
110 u32 *tid32 = (u32 *) &tid;
114 static inline u32 gtp1u_hashfn(u32 tid)
116 return jhash_1word(tid, gtp_h_initval);
125 static struct pdp_ctx *gtp0_pdp_find(struct gtp_dev *gtp, u64 tid)
130 head = >p->tid_hash[gtp0_hashfn(tid) % gtp->hash_size];
134 pdp->u.v0.tid == tid)
141 static struct pdp_ctx *gtp1_pdp_find(struct gtp_dev *gtp, u32 tid)
146 head = >p->tid_hash[gtp1u_hashfn(tid) % gtp->hash_size];
150 pdp->u.v1.i_tei == tid)
265 return !(gtp0->tid || (gtp0->flags ^ 0x1e) ||
280 hdr->tid = 0;
436 pctx = gtp0_pdp_find(gtp, be64_to_cpu(gtp0->tid));
454 hdr->tid = 0;
489 if (!(gtp1u->flags & GTP1_F_SEQ) || gtp1u->tid)
548 if (!(gtp1u->flags & GTP1_F_SEQ) || gtp1u->tid)
613 pctx = gtp1_pdp_find(gtp, ntohl(gtp1->tid));
749 gtp0->tid = cpu_to_be64(pctx->u.v0.tid);
768 gtp1->tid = htonl(pctx->u.v1.o_tei);
1326 pctx->u.v0.tid = nla_get_u64(info->attrs[GTPA_TID]);
1379 pctx->u.v0.tid, pctx);
1401 * flow.". We use the tid for this instead, I cannot find a
1405 hash_tid = gtp0_hashfn(pctx->u.v0.tid) % gtp->hash_size;
1418 pctx->u.v0.tid, &pctx->peer_addr_ip4,
1571 pctx->u.v0.tid, pctx);
1602 if (nla_put_u64_64bit(skb, GTPA_TID, pctx->u.v0.tid, GTPA_PAD) ||