Lines Matching defs:tuple

24 	struct flow_offload_tuple *ft = &flow->tuplehash[dir].tuple;
25 struct nf_conntrack_tuple *ctt = &flow->ct->tuplehash[dir].tuple;
89 struct dst_entry *dst = route->tuple[dir].dst;
91 route->tuple[dir].dst = NULL;
100 struct flow_offload_tuple *flow_tuple = &flow->tuplehash[dir].tuple;
113 flow_tuple->iifidx = route->tuple[dir].in.ifindex;
114 for (i = route->tuple[dir].in.num_encaps - 1; i >= 0; i--) {
115 flow_tuple->encap[j].id = route->tuple[dir].in.encap[i].id;
116 flow_tuple->encap[j].proto = route->tuple[dir].in.encap[i].proto;
117 if (route->tuple[dir].in.ingress_vlans & BIT(i))
121 flow_tuple->encap_num = route->tuple[dir].in.num_encaps;
123 switch (route->tuple[dir].xmit_type) {
125 memcpy(flow_tuple->out.h_dest, route->tuple[dir].out.h_dest,
127 memcpy(flow_tuple->out.h_source, route->tuple[dir].out.h_source,
129 flow_tuple->out.ifidx = route->tuple[dir].out.ifindex;
130 flow_tuple->out.hw_ifidx = route->tuple[dir].out.hw_ifindex;
142 flow_tuple->xmit_type = route->tuple[dir].xmit_type;
150 if (flow->tuplehash[dir].tuple.xmit_type == FLOW_OFFLOAD_XMIT_NEIGH ||
151 flow->tuplehash[dir].tuple.xmit_type == FLOW_OFFLOAD_XMIT_XFRM)
152 dst_release(flow->tuplehash[dir].tuple.dst_cache);
224 const struct flow_offload_tuple *tuple = data;
226 return jhash(tuple, offsetof(struct flow_offload_tuple, __hash), seed);
233 return jhash(&tuplehash->tuple, offsetof(struct flow_offload_tuple, __hash), seed);
239 const struct flow_offload_tuple *tuple = arg->key;
242 if (memcmp(&x->tuple, tuple, offsetof(struct flow_offload_tuple, __hash)))
353 struct flow_offload_tuple *tuple)
359 tuplehash = rhashtable_lookup(&flow_table->rhashtable, tuple,
364 dir = tuplehash->tuple.dir;
398 if (tuplehash->tuple.dir)
501 new_port = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_port;
506 new_port = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.src_port;
527 new_port = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.src_port;
532 new_port = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.dst_port;
576 (flow->tuplehash[0].tuple.iifidx == dev->ifindex ||
577 flow->tuplehash[1].tuple.iifidx == dev->ifindex))