Lines Matching refs:eth_hdr
1033 struct ethhdr *eth_hdr; in fnic_eth_send() local
1038 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in fnic_eth_send()
1039 vlan_hdr = skb_push(skb, sizeof(*vlan_hdr) - sizeof(*eth_hdr)); in fnic_eth_send()
1040 memcpy(vlan_hdr, eth_hdr, 2 * ETH_ALEN); in fnic_eth_send()
1042 vlan_hdr->h_vlan_encapsulated_proto = eth_hdr->h_proto; in fnic_eth_send()
1045 FNIC_FC_SEND|0x80, (char *)eth_hdr, skb->len)) != 0) { in fnic_eth_send()
1087 struct ethhdr *eth_hdr; in fnic_send_frame() local
1105 eth_hdr = (struct ethhdr *)vlan_hdr; in fnic_send_frame()
1111 eth_hdr_len = sizeof(*eth_hdr) + sizeof(*fcoe_hdr); in fnic_send_frame()
1112 eth_hdr = skb_push(skb, eth_hdr_len); in fnic_send_frame()
1113 eth_hdr->h_proto = htons(ETH_P_FCOE); in fnic_send_frame()
1114 fcoe_hdr = (struct fcoe_hdr *)(eth_hdr + 1); in fnic_send_frame()
1118 fc_fcoe_set_mac(eth_hdr->h_dest, fh->fh_d_id); in fnic_send_frame()
1120 memcpy(eth_hdr->h_dest, fnic->ctlr.dest_addr, ETH_ALEN); in fnic_send_frame()
1121 memcpy(eth_hdr->h_source, fnic->data_src_addr, ETH_ALEN); in fnic_send_frame()
1131 pa = dma_map_single(&fnic->pdev->dev, eth_hdr, tot_len, DMA_TO_DEVICE); in fnic_send_frame()
1139 (char *)eth_hdr, tot_len)) != 0) { in fnic_send_frame()