Lines Matching defs:eth
339 key->eth.vlan.tci = 0;
340 key->eth.vlan.tpid = 0;
341 key->eth.cvlan.tci = 0;
342 key->eth.cvlan.tpid = 0;
350 key->eth.vlan.tci = htons(skb->vlan_tci) | htons(VLAN_CFI_MASK);
351 key->eth.vlan.tpid = skb->vlan_proto;
354 res = parse_vlan_tag(skb, &key->eth.vlan, true);
360 res = parse_vlan_tag(skb, &key->eth.cvlan, false);
537 if (key->eth.type == htons(ETH_P_IP)) {
612 } else if (key->eth.type == htons(ETH_P_ARP) ||
613 key->eth.type == htons(ETH_P_RARP)) {
639 } else if (eth_p_mpls(key->eth.type)) {
669 } else if (key->eth.type == htons(ETH_P_IPV6)) {
731 } else if (key->eth.type == htons(ETH_P_NSH)) {
756 * - skb->transport_header: If key->eth.type is ETH_P_IP or ETH_P_IPV6
759 * For other key->eth.type values it is left untouched.
762 * Equals to key->eth.type.
766 struct ethhdr *eth;
780 key->eth.type = skb->protocol;
782 eth = eth_hdr(skb);
783 ether_addr_copy(key->eth.src, eth->h_source);
784 ether_addr_copy(key->eth.dst, eth->h_dest);
794 key->eth.type = parse_ethertype(skb);
795 if (unlikely(key->eth.type == htons(0)))
802 if (key->eth.cvlan.tci & htons(VLAN_CFI_MASK))
803 skb->protocol = key->eth.cvlan.tpid;
805 skb->protocol = key->eth.type;
929 * For L2 packet key eth type would be zero. skb protocol
933 skb->protocol = key->eth.type;
943 key->eth.type != htons(ETH_P_IP))
946 (key->eth.type != htons(ETH_P_IPV6) ||