Lines Matching refs:eth
192 if (match->key->eth.type == htons(ETH_P_ARP) in match_validate()
193 || match->key->eth.type == htons(ETH_P_RARP)) { in match_validate()
195 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
199 if (eth_p_mpls(match->key->eth.type)) { in match_validate()
201 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
205 if (match->key->eth.type == htons(ETH_P_IP)) { in match_validate()
207 if (match->mask && match->mask->key.eth.type == htons(0xffff)) { in match_validate()
242 if (match->key->eth.type == htons(ETH_P_IPV6)) { in match_validate()
244 if (match->mask && match->mask->key.eth.type == htons(0xffff)) { in match_validate()
293 if (match->key->eth.type == htons(ETH_P_NSH)) { in match_validate()
296 match->mask->key.eth.type == htons(0xffff)) { in match_validate()
1002 SW_FLOW_KEY_PUT(match, eth.vlan.tpid, tpid, is_mask); in encode_vlan_from_nlattrs()
1003 SW_FLOW_KEY_PUT(match, eth.vlan.tci, tci, is_mask); in encode_vlan_from_nlattrs()
1005 SW_FLOW_KEY_PUT(match, eth.cvlan.tpid, tpid, is_mask); in encode_vlan_from_nlattrs()
1006 SW_FLOW_KEY_PUT(match, eth.cvlan.tci, tci, is_mask); in encode_vlan_from_nlattrs()
1055 bool encap_valid = !!(match->key->eth.vlan.tci & in validate_vlan_mask_from_nlattrs()
1057 bool i_encap_valid = !!(match->key->eth.cvlan.tci & in validate_vlan_mask_from_nlattrs()
1138 encap_valid = !!(match->key->eth.vlan.tci & htons(VLAN_CFI_MASK)); in parse_vlan_from_nlattrs()
1165 SW_FLOW_KEY_PUT(match, eth.type, eth_type, is_mask); in parse_eth_type_from_nlattrs()
1537 SW_FLOW_KEY_MEMCPY(match, eth.src, in ovs_key_from_nlattrs()
1539 SW_FLOW_KEY_MEMCPY(match, eth.dst, in ovs_key_from_nlattrs()
1557 SW_FLOW_KEY_PUT(match, eth.type, htons(ETH_P_802_2), is_mask); in ovs_key_from_nlattrs()
1559 } else if (!match->key->eth.type) { in ovs_key_from_nlattrs()
1870 SW_FLOW_KEY_PUT(match, eth.vlan.tci, htons(0xffff), true); in ovs_nla_get_match()
1871 SW_FLOW_KEY_PUT(match, eth.cvlan.tci, htons(0xffff), true); in ovs_nla_get_match()
2078 ether_addr_copy(eth_key->eth_src, output->eth.src); in __ovs_nla_put_key()
2079 ether_addr_copy(eth_key->eth_dst, output->eth.dst); in __ovs_nla_put_key()
2081 if (swkey->eth.vlan.tci || eth_type_vlan(swkey->eth.type)) { in __ovs_nla_put_key()
2082 if (ovs_nla_put_vlan(skb, &output->eth.vlan, is_mask)) in __ovs_nla_put_key()
2085 if (!swkey->eth.vlan.tci) in __ovs_nla_put_key()
2088 if (swkey->eth.cvlan.tci || eth_type_vlan(swkey->eth.type)) { in __ovs_nla_put_key()
2089 if (ovs_nla_put_vlan(skb, &output->eth.cvlan, is_mask)) in __ovs_nla_put_key()
2093 if (!swkey->eth.cvlan.tci) in __ovs_nla_put_key()
2098 if (swkey->eth.type == htons(ETH_P_802_2)) { in __ovs_nla_put_key()
2105 if (is_mask && output->eth.type) in __ovs_nla_put_key()
2107 output->eth.type)) in __ovs_nla_put_key()
2113 if (nla_put_be16(skb, OVS_KEY_ATTR_ETHERTYPE, output->eth.type)) in __ovs_nla_put_key()
2116 if (eth_type_vlan(swkey->eth.type)) { in __ovs_nla_put_key()
2124 if (swkey->eth.type == htons(ETH_P_IP)) { in __ovs_nla_put_key()
2137 } else if (swkey->eth.type == htons(ETH_P_IPV6)) { in __ovs_nla_put_key()
2161 } else if (swkey->eth.type == htons(ETH_P_NSH)) { in __ovs_nla_put_key()
2164 } else if (swkey->eth.type == htons(ETH_P_ARP) || in __ovs_nla_put_key()
2165 swkey->eth.type == htons(ETH_P_RARP)) { in __ovs_nla_put_key()
2178 } else if (eth_p_mpls(swkey->eth.type)) { in __ovs_nla_put_key()
2193 if ((swkey->eth.type == htons(ETH_P_IP) || in __ovs_nla_put_key()
2194 swkey->eth.type == htons(ETH_P_IPV6)) && in __ovs_nla_put_key()
2227 } else if (swkey->eth.type == htons(ETH_P_IP) && in __ovs_nla_put_key()
2237 } else if (swkey->eth.type == htons(ETH_P_IPV6) && in __ovs_nla_put_key()
3541 if (eth_p_mpls(key->eth.type)) in ovs_nla_copy_actions()
3545 err = __ovs_nla_copy_actions(net, attr, key, sfa, key->eth.type, in ovs_nla_copy_actions()
3546 key->eth.vlan.tci, mpls_label_count, log, in ovs_nla_copy_actions()