Lines Matching defs:eth
488 key->eth.vlan.tci = 0;
489 key->eth.vlan.tpid = 0;
490 key->eth.cvlan.tci = 0;
491 key->eth.cvlan.tpid = 0;
499 key->eth.vlan.tci = htons(skb->vlan_tci) | htons(VLAN_CFI_MASK);
500 key->eth.vlan.tpid = skb->vlan_proto;
503 res = parse_vlan_tag(skb, &key->eth.vlan, true);
509 res = parse_vlan_tag(skb, &key->eth.cvlan, false);
687 if (key->eth.type == htons(ETH_P_IP)) {
762 } else if (key->eth.type == htons(ETH_P_ARP) ||
763 key->eth.type == htons(ETH_P_RARP)) {
789 } else if (eth_p_mpls(key->eth.type)) {
819 } else if (key->eth.type == htons(ETH_P_IPV6)) {
881 } else if (key->eth.type == htons(ETH_P_NSH)) {
904 * - skb->transport_header: If key->eth.type is ETH_P_IP or ETH_P_IPV6
907 * For other key->eth.type values it is left untouched.
910 * Equals to key->eth.type.
916 struct ethhdr *eth;
930 key->eth.type = skb->protocol;
932 eth = eth_hdr(skb);
933 ether_addr_copy(key->eth.src, eth->h_source);
934 ether_addr_copy(key->eth.dst, eth->h_dest);
944 key->eth.type = parse_ethertype(skb);
945 if (unlikely(key->eth.type == htons(0)))
952 if (key->eth.cvlan.tci & htons(VLAN_CFI_MASK))
953 skb->protocol = key->eth.cvlan.tpid;
955 skb->protocol = key->eth.type;
1097 * For L2 packet key eth type would be zero. skb protocol
1101 skb->protocol = key->eth.type;
1111 key->eth.type != htons(ETH_P_IP))
1114 (key->eth.type != htons(ETH_P_IPV6) ||