Lines Matching refs:mac_hdr
299 struct ethhdr *mac_hdr) in opa_vnic_chk_mac_tbl() argument
311 key = mac_hdr->h_dest[OPA_VNIC_MAC_HASH_IDX]; in opa_vnic_chk_mac_tbl()
319 if (!memcmp(node->entry.mac_addr, mac_hdr->h_dest, in opa_vnic_chk_mac_tbl()
337 struct ethhdr *mac_hdr = (struct ethhdr *)skb_mac_header(skb); in opa_vnic_get_dlid() local
340 dlid = opa_vnic_chk_mac_tbl(adapter, mac_hdr); in opa_vnic_get_dlid()
344 if (is_multicast_ether_addr(mac_hdr->h_dest)) { in opa_vnic_get_dlid()
347 if (is_local_ether_addr(mac_hdr->h_dest)) { in opa_vnic_get_dlid()
348 dlid = ((uint32_t)mac_hdr->h_dest[5] << 16) | in opa_vnic_get_dlid()
349 ((uint32_t)mac_hdr->h_dest[4] << 8) | in opa_vnic_get_dlid()
350 mac_hdr->h_dest[3]; in opa_vnic_get_dlid()
366 struct ethhdr *mac_hdr = (struct ethhdr *)skb_mac_header(skb); in opa_vnic_get_sc() local
373 if (is_multicast_ether_addr(mac_hdr->h_dest)) in opa_vnic_get_sc()
378 if (is_multicast_ether_addr(mac_hdr->h_dest)) in opa_vnic_get_sc()
389 struct ethhdr *mac_hdr = (struct ethhdr *)skb_mac_header(skb); in opa_vnic_get_vl() local
396 if (is_multicast_ether_addr(mac_hdr->h_dest)) in opa_vnic_get_vl()
401 if (is_multicast_ether_addr(mac_hdr->h_dest)) in opa_vnic_get_vl()