Lines Matching defs:key
58 const long *m = (const long *)((const u8 *)&mask->key + start);
647 static u32 flow_hash(const struct sw_flow_key *key,
650 const u32 *hash_key = (const u32 *)((const u8 *)key + range->start);
658 static int flow_key_start(const struct sw_flow_key *key)
660 if (key->tun_proto)
683 const struct sw_flow_key *key,
686 return cmp_key(&flow->key, key, range->start, range->end);
692 struct sw_flow_key *key = match->key;
693 int key_start = flow_key_start(key);
697 return cmp_key(flow->id.unmasked_key, key, key_start, key_end);
732 const struct sw_flow_key *key,
745 flow = masked_flow_lookup(ti, key, mask, n_mask_hit);
765 flow = masked_flow_lookup(ti, key, mask, n_mask_hit);
786 const struct sw_flow_key *key,
805 return flow_lookup(tbl, ti, ma, key, n_mask_hit, &cache,
812 if (key->recirc_id)
813 skb_hash = jhash_1word(skb_hash, key->recirc_id);
826 flow = flow_lookup(tbl, ti, ma, key, n_mask_hit,
840 flow = flow_lookup(tbl, ti, ma, key, n_mask_hit, n_cache_hit,
850 const struct sw_flow_key *key)
864 flow = flow_lookup(tbl, ti, ma, key, &n_mask_hit, &n_cache_hit, &index);
886 flow = masked_flow_lookup(ti, match->key, mask, &n_mask_hit);
914 return flow_cmp_masked_key(flow, match->key, &match->range);
981 const u8 *a_ = (const u8 *)&a->key + a->range.start;
982 const u8 *b_ = (const u8 *)&b->key + b->range.start;
1019 mask->key = new->key;
1042 flow->flow_table.hash = flow_hash(&flow->key, &flow->mask->range);