Lines Matching defs:key
92 We require exact key match i.e. if a key is present in packet
93 it will match only tunnel with the same key; if it is not present,
100 #define HASH_KEY(key) (((__force u32)key^((__force u32)key>>4))&(IP6_GRE_HASH_SIZE - 1))
113 /* Given src, dst and key, find appropriate for input tunnel. */
117 __be32 key, __be16 gre_proto)
122 unsigned int h1 = HASH_KEY(key);
135 key != t->parms.i_key ||
159 key != t->parms.i_key ||
185 key != t->parms.i_key ||
208 if (t->parms.i_key != key ||
327 __be32 key = parms->i_key;
338 key == t->parms.i_key &&
437 tpi.key, tpi.proto);
500 &ipv6h->saddr, &ipv6h->daddr, tpi->key,
509 tun_id = key32_to_tunnel_id(tpi->key);
541 &ipv6h->saddr, &ipv6h->daddr, tpi->key,
564 tun_id = key32_to_tunnel_id(tpi->key);
585 info->key.tun_flags |= TUNNEL_ERSPAN_OPT;
742 const struct ip_tunnel_key *key;
750 key = &tun_info->key;
753 fl6->daddr = key->u.ipv6.dst;
754 fl6->flowlabel = key->label;
756 fl6->fl6_gre_key = tunnel_id_to_key32(key->tun_id);
758 dsfield = key->tos;
759 flags = key->tun_flags &
768 tunnel_id_to_key32(tun_info->key.tun_id),
985 /* For collect_md mode, derive fl6 from the tunnel key,
989 const struct ip_tunnel_key *key;
998 key = &tun_info->key;
1001 fl6.daddr = key->u.ipv6.dst;
1002 fl6.flowlabel = key->label;
1004 fl6.fl6_gre_key = tunnel_id_to_key32(key->tun_id);
1006 dsfield = key->tos;
1007 if (!(tun_info->key.tun_flags & TUNNEL_ERSPAN_OPT))
1013 tun_id = tunnel_id_to_key32(key->tun_id);
1714 /* ERSPAN should only have GRE sequence and key flag */
1724 * 32-bit key field as ID, check it's range.