Lines Matching defs:key

219 void ovs_dp_process_packet(struct sk_buff *skb, struct sw_flow_key *key)
234 flow = ovs_flow_tbl_lookup_stats(&dp->table, key, skb_get_hash(skb),
243 error = ovs_dp_upcall(dp, skb, key, &upcall, 0);
259 ovs_flow_stats_update(flow, key->tp.flags, skb);
261 error = ovs_execute_actions(dp, skb, sf_acts, key);
278 const struct sw_flow_key *key,
291 err = queue_userspace_packet(dp, skb, key, upcall_info, cutlen);
293 err = queue_gso_packets(dp, skb, key, upcall_info, cutlen);
310 const struct sw_flow_key *key,
327 /* The initial flow key extracted by ovs_flow_key_extract()
331 later_key = *key;
338 key = &later_key;
340 err = queue_userspace_packet(dp, skb, key, upcall_info, cutlen);
395 const struct sw_flow_key *key,
459 err = ovs_nla_put_key(key, key, OVS_PACKET_ATTR_KEY, false, user_skb);
606 packet, &flow->key, log);
611 &flow->key, &acts, log);
616 packet->priority = flow->key.phy.priority;
617 packet->mark = flow->key.phy.skb_mark;
625 input_vport = ovs_vport_rcu(dp, flow->key.phy.in_port);
637 err = ovs_execute_actions(dp, packet, sf_acts, &flow->key);
738 /* OVS_FLOW_ATTR_UFID, or unmasked flow key as fallback
936 struct sw_flow_key *key;
943 /* Must have key and actions. */
946 OVS_NLERR(log, "Flow key attr not present in new flow.");
963 /* Extract key. */
964 key = kzalloc(sizeof(*key), GFP_KERNEL);
965 if (!key) {
970 ovs_match_init(&match, key, false, &mask);
976 ovs_flow_mask_key(&new_flow->key, key, true, &mask);
980 key, log);
986 &new_flow->key, &acts, log);
1010 flow = ovs_flow_tbl_lookup(&dp->table, key);
1052 else /* UFID matches but key is different */
1081 kfree(key);
1090 kfree(key);
1101 const struct sw_flow_key *key,
1109 ovs_flow_mask_key(&masked_key, key, true, mask);
1125 * If there are not key and action attrs, we return 0
1136 struct sw_flow_key *key,
1145 ovs_match_init(match, key, true, &mask);
1155 "Flow key attribute not present in set flow.");
1160 *acts = get_flow_actions(net, a[OVS_FLOW_ATTR_ACTIONS], key,
1179 struct sw_flow_key key;
1198 error = ovs_nla_init_match_and_action(net, &match, &key, a,
1281 struct sw_flow_key key;
1294 ovs_match_init(&match, &key, true, NULL);
1340 struct sw_flow_key key;
1353 ovs_match_init(&match, &key, true, NULL);