Home
last modified time | relevance | path

Searched refs:flow_key (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/net/openvswitch/
Dactions.c255 static int set_mpls(struct sk_buff *skb, struct sw_flow_key *flow_key, in set_mpls() argument
276 flow_key->mpls.top_lse = lse; in set_mpls()
319 static int set_eth_addr(struct sk_buff *skb, struct sw_flow_key *flow_key, in set_eth_addr() argument
338 ether_addr_copy(flow_key->eth.src, eth_hdr(skb)->h_source); in set_eth_addr()
339 ether_addr_copy(flow_key->eth.dst, eth_hdr(skb)->h_dest); in set_eth_addr()
515 static int set_ipv4(struct sk_buff *skb, struct sw_flow_key *flow_key, in set_ipv4() argument
539 flow_key->ipv4.addr.src = new_addr; in set_ipv4()
547 flow_key->ipv4.addr.dst = new_addr; in set_ipv4()
552 flow_key->ip.tos = nh->tos; in set_ipv4()
556 flow_key->ip.ttl = nh->ttl; in set_ipv4()
[all …]
Dflow.h54 #define TUN_METADATA_OPTS(flow_key, opt_len) \ argument
55 ((void *)((flow_key)->tun_opts + TUN_METADATA_OFFSET(opt_len)))
Dflow_netlink.c2650 const struct sw_flow_key *flow_key, in validate_set() argument
2712 if (ipv4_key->ipv4_proto != flow_key->ip.proto) in validate_set()
2715 if (ipv4_key->ipv4_frag != flow_key->ip.frag) in validate_set()
2737 if (ipv6_key->ipv6_proto != flow_key->ip.proto) in validate_set()
2740 if (ipv6_key->ipv6_frag != flow_key->ip.frag) in validate_set()
2751 flow_key->ip.proto != IPPROTO_TCP) in validate_set()
2759 flow_key->ip.proto != IPPROTO_UDP) in validate_set()
2772 flow_key->ip.proto != IPPROTO_SCTP) in validate_set()
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_xdp_noinline.c111 struct flow_key { struct
128 struct flow_key flow; argument
183 .key_size = sizeof(struct flow_key),
/Linux-v4.19/drivers/net/ethernet/sun/
Dniu.c5059 err = niu_set_flow_key(np, i, parent->flow_key[index]); in niu_init_classifier_hw()
7012 static u64 niu_flowkey_to_ethflow(u64 flow_key) in niu_flowkey_to_ethflow() argument
7016 if (flow_key & FLOW_KEY_L2DA) in niu_flowkey_to_ethflow()
7018 if (flow_key & FLOW_KEY_VLAN) in niu_flowkey_to_ethflow()
7020 if (flow_key & FLOW_KEY_IPSA) in niu_flowkey_to_ethflow()
7022 if (flow_key & FLOW_KEY_IPDA) in niu_flowkey_to_ethflow()
7024 if (flow_key & FLOW_KEY_PROTO) in niu_flowkey_to_ethflow()
7026 if (flow_key & (FLOW_KEY_L4_BYTE12 << FLOW_KEY_L4_0_SHIFT)) in niu_flowkey_to_ethflow()
7028 if (flow_key & (FLOW_KEY_L4_BYTE12 << FLOW_KEY_L4_1_SHIFT)) in niu_flowkey_to_ethflow()
7035 static int niu_ethflow_to_flowkey(u64 ethflow, u64 *flow_key) in niu_ethflow_to_flowkey() argument
[all …]
Dniu.h3123 u64 flow_key[12]; member