Lines Matching refs:eth

148 	if (match->key->eth.type == htons(ETH_P_ARP)  in match_validate()
149 || match->key->eth.type == htons(ETH_P_RARP)) { in match_validate()
151 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
155 if (eth_p_mpls(match->key->eth.type)) { in match_validate()
157 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
161 if (match->key->eth.type == htons(ETH_P_IP)) { in match_validate()
163 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
196 if (match->key->eth.type == htons(ETH_P_IPV6)) { in match_validate()
198 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
788 SW_FLOW_KEY_MEMCPY(match, eth.src, in ovs_key_from_nlattrs()
790 SW_FLOW_KEY_MEMCPY(match, eth.dst, in ovs_key_from_nlattrs()
808 SW_FLOW_KEY_PUT(match, eth.tci, tci, is_mask); in ovs_key_from_nlattrs()
825 SW_FLOW_KEY_PUT(match, eth.type, eth_type, is_mask); in ovs_key_from_nlattrs()
828 SW_FLOW_KEY_PUT(match, eth.type, htons(ETH_P_802_2), is_mask); in ovs_key_from_nlattrs()
1131 SW_FLOW_KEY_PUT(match, eth.tci, htons(0xffff), true); in ovs_nla_get_match()
1322 ether_addr_copy(eth_key->eth_src, output->eth.src); in __ovs_nla_put_key()
1323 ether_addr_copy(eth_key->eth_dst, output->eth.dst); in __ovs_nla_put_key()
1325 if (swkey->eth.tci || swkey->eth.type == htons(ETH_P_8021Q)) { in __ovs_nla_put_key()
1329 nla_put_be16(skb, OVS_KEY_ATTR_VLAN, output->eth.tci)) in __ovs_nla_put_key()
1332 if (!swkey->eth.tci) in __ovs_nla_put_key()
1337 if (swkey->eth.type == htons(ETH_P_802_2)) { in __ovs_nla_put_key()
1344 if (is_mask && output->eth.type) in __ovs_nla_put_key()
1346 output->eth.type)) in __ovs_nla_put_key()
1351 if (nla_put_be16(skb, OVS_KEY_ATTR_ETHERTYPE, output->eth.type)) in __ovs_nla_put_key()
1354 if (swkey->eth.type == htons(ETH_P_IP)) { in __ovs_nla_put_key()
1367 } else if (swkey->eth.type == htons(ETH_P_IPV6)) { in __ovs_nla_put_key()
1383 } else if (swkey->eth.type == htons(ETH_P_ARP) || in __ovs_nla_put_key()
1384 swkey->eth.type == htons(ETH_P_RARP)) { in __ovs_nla_put_key()
1397 } else if (eth_p_mpls(swkey->eth.type)) { in __ovs_nla_put_key()
1407 if ((swkey->eth.type == htons(ETH_P_IP) || in __ovs_nla_put_key()
1408 swkey->eth.type == htons(ETH_P_IPV6)) && in __ovs_nla_put_key()
1441 } else if (swkey->eth.type == htons(ETH_P_IP) && in __ovs_nla_put_key()
1451 } else if (swkey->eth.type == htons(ETH_P_IPV6) && in __ovs_nla_put_key()
2177 err = __ovs_nla_copy_actions(attr, key, 0, sfa, key->eth.type, in ovs_nla_copy_actions()
2178 key->eth.tci, log); in ovs_nla_copy_actions()