Searched refs:flow_key (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/net/openvswitch/
H A Dactions.c192 static int set_mpls(struct sk_buff *skb, struct sw_flow_key *flow_key, set_mpls() argument
213 flow_key->mpls.top_lse = lse; set_mpls()
252 static int set_eth_addr(struct sk_buff *skb, struct sw_flow_key *flow_key, set_eth_addr() argument
271 ether_addr_copy(flow_key->eth.src, eth_hdr(skb)->h_source); set_eth_addr()
272 ether_addr_copy(flow_key->eth.dst, eth_hdr(skb)->h_dest); set_eth_addr()
367 static int set_ipv4(struct sk_buff *skb, struct sw_flow_key *flow_key, set_ipv4() argument
391 flow_key->ipv4.addr.src = new_addr; set_ipv4()
399 flow_key->ipv4.addr.dst = new_addr; set_ipv4()
404 flow_key->ip.tos = nh->tos; set_ipv4()
408 flow_key->ip.ttl = nh->ttl; set_ipv4()
419 static int set_ipv6(struct sk_buff *skb, struct sw_flow_key *flow_key, set_ipv6() argument
446 memcpy(&flow_key->ipv6.addr.src, masked, set_ipv6()
447 sizeof(flow_key->ipv6.addr.src)); set_ipv6()
468 memcpy(&flow_key->ipv6.addr.dst, masked, set_ipv6()
469 sizeof(flow_key->ipv6.addr.dst)); set_ipv6()
474 flow_key->ip.tos = ipv6_get_dsfield(nh); set_ipv6()
479 flow_key->ipv6.label = set_ipv6()
484 flow_key->ip.ttl = nh->hop_limit; set_ipv6()
497 static int set_udp(struct sk_buff *skb, struct sw_flow_key *flow_key, set_udp() argument
518 flow_key->tp.src = src; set_udp()
522 flow_key->tp.dst = dst; set_udp()
530 flow_key->tp.src = src; set_udp()
531 flow_key->tp.dst = dst; set_udp()
539 static int set_tcp(struct sk_buff *skb, struct sw_flow_key *flow_key, set_tcp() argument
556 flow_key->tp.src = src; set_tcp()
561 flow_key->tp.dst = dst; set_tcp()
568 static int set_sctp(struct sk_buff *skb, struct sw_flow_key *flow_key, set_sctp() argument
594 flow_key->tp.src = sh->source; set_sctp()
595 flow_key->tp.dst = sh->dest; set_sctp()
724 struct sw_flow_key *flow_key, execute_set_action()
740 struct sw_flow_key *flow_key, execute_masked_set_action()
748 flow_key->phy.priority = skb->priority; execute_masked_set_action()
753 flow_key->phy.skb_mark = skb->mark; execute_masked_set_action()
762 err = set_eth_addr(skb, flow_key, nla_data(a), execute_masked_set_action()
767 err = set_ipv4(skb, flow_key, nla_data(a), execute_masked_set_action()
772 err = set_ipv6(skb, flow_key, nla_data(a), execute_masked_set_action()
777 err = set_tcp(skb, flow_key, nla_data(a), execute_masked_set_action()
782 err = set_udp(skb, flow_key, nla_data(a), execute_masked_set_action()
787 err = set_sctp(skb, flow_key, nla_data(a), execute_masked_set_action()
792 err = set_mpls(skb, flow_key, nla_data(a), get_mask(a, execute_masked_set_action()
723 execute_set_action(struct sk_buff *skb, struct sw_flow_key *flow_key, const struct nlattr *a) execute_set_action() argument
739 execute_masked_set_action(struct sk_buff *skb, struct sw_flow_key *flow_key, const struct nlattr *a) execute_masked_set_action() argument
H A Dflow.h66 #define TUN_METADATA_OPTS(flow_key, opt_len) \
67 ((void *)((flow_key)->tun_opts + TUN_METADATA_OFFSET(opt_len)))
H A Dflow_netlink.c1815 const struct sw_flow_key *flow_key, validate_set()
1875 if (ipv4_key->ipv4_proto != flow_key->ip.proto) validate_set()
1878 if (ipv4_key->ipv4_frag != flow_key->ip.frag) validate_set()
1900 if (ipv6_key->ipv6_proto != flow_key->ip.proto) validate_set()
1903 if (ipv6_key->ipv6_frag != flow_key->ip.frag) validate_set()
1914 flow_key->ip.proto != IPPROTO_TCP) validate_set()
1922 flow_key->ip.proto != IPPROTO_UDP) validate_set()
1935 flow_key->ip.proto != IPPROTO_SCTP) validate_set()
1814 validate_set(const struct nlattr *a, const struct sw_flow_key *flow_key, struct sw_flow_actions **sfa, bool *skip_copy, __be16 eth_type, bool masked, bool log) validate_set() argument
/linux-4.1.27/drivers/net/ethernet/sun/
H A Dniu.c5075 err = niu_set_flow_key(np, i, parent->flow_key[index]); niu_init_classifier_hw()
7036 static u64 niu_flowkey_to_ethflow(u64 flow_key) niu_flowkey_to_ethflow() argument
7040 if (flow_key & FLOW_KEY_L2DA) niu_flowkey_to_ethflow()
7042 if (flow_key & FLOW_KEY_VLAN) niu_flowkey_to_ethflow()
7044 if (flow_key & FLOW_KEY_IPSA) niu_flowkey_to_ethflow()
7046 if (flow_key & FLOW_KEY_IPDA) niu_flowkey_to_ethflow()
7048 if (flow_key & FLOW_KEY_PROTO) niu_flowkey_to_ethflow()
7050 if (flow_key & (FLOW_KEY_L4_BYTE12 << FLOW_KEY_L4_0_SHIFT)) niu_flowkey_to_ethflow()
7052 if (flow_key & (FLOW_KEY_L4_BYTE12 << FLOW_KEY_L4_1_SHIFT)) niu_flowkey_to_ethflow()
7059 static int niu_ethflow_to_flowkey(u64 ethflow, u64 *flow_key) niu_ethflow_to_flowkey() argument
7078 *flow_key = key; niu_ethflow_to_flowkey()
7097 nfc->data = niu_flowkey_to_ethflow(np->parent->flow_key[class - niu_get_hash_opts()
7323 u64 flow_key = 0; niu_set_hash_opts() local
7335 flow_key = np->parent->tcam_key[class - niu_set_hash_opts()
7337 flow_key |= TCAM_KEY_DISC; niu_set_hash_opts()
7338 nw64(TCAM_KEY(class - CLASS_CODE_USER_PROG1), flow_key); niu_set_hash_opts()
7339 np->parent->tcam_key[class - CLASS_CODE_USER_PROG1] = flow_key; niu_set_hash_opts()
7347 flow_key = np->parent->tcam_key[class - niu_set_hash_opts()
7349 flow_key &= ~TCAM_KEY_DISC; niu_set_hash_opts()
7351 flow_key); niu_set_hash_opts()
7353 flow_key; niu_set_hash_opts()
7358 if (!niu_ethflow_to_flowkey(nfc->data, &flow_key)) niu_set_hash_opts()
7362 nw64(FLOW_KEY(class - CLASS_CODE_USER_PROG1), flow_key); niu_set_hash_opts()
7363 np->parent->flow_key[class - CLASS_CODE_USER_PROG1] = flow_key; niu_set_hash_opts()
9502 p->flow_key[index] = (FLOW_KEY_IPSA | niu_new_parent()
H A Dniu.h3122 u64 flow_key[12]; member in struct:rx_pkt_hdr0::niu_parent

Completed in 249 milliseconds