Lines Matching refs:eth_hdr
1022 struct ethhdr *eth_hdr;
1027 eth_hdr = (struct ethhdr *)skb_mac_header(skb);
1028 vlan_hdr = skb_push(skb, sizeof(*vlan_hdr) - sizeof(*eth_hdr));
1029 memcpy(vlan_hdr, eth_hdr, 2 * ETH_ALEN);
1031 vlan_hdr->h_vlan_encapsulated_proto = eth_hdr->h_proto;
1034 FNIC_FC_SEND|0x80, (char *)eth_hdr, skb->len)) != 0) {
1076 struct ethhdr *eth_hdr;
1094 eth_hdr = (struct ethhdr *)vlan_hdr;
1100 eth_hdr_len = sizeof(*eth_hdr) + sizeof(*fcoe_hdr);
1101 eth_hdr = skb_push(skb, eth_hdr_len);
1102 eth_hdr->h_proto = htons(ETH_P_FCOE);
1103 fcoe_hdr = (struct fcoe_hdr *)(eth_hdr + 1);
1107 fc_fcoe_set_mac(eth_hdr->h_dest, fh->fh_d_id);
1109 memcpy(eth_hdr->h_dest, fnic->ctlr.dest_addr, ETH_ALEN);
1110 memcpy(eth_hdr->h_source, fnic->data_src_addr, ETH_ALEN);
1120 pa = dma_map_single(&fnic->pdev->dev, eth_hdr, tot_len, DMA_TO_DEVICE);
1128 (char *)eth_hdr, tot_len)) != 0) {