Lines Matching refs:eth_hdr
981 struct ethhdr *eth_hdr; in fnic_eth_send() local
986 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in fnic_eth_send()
988 sizeof(*vlan_hdr) - sizeof(*eth_hdr)); in fnic_eth_send()
989 memcpy(vlan_hdr, eth_hdr, 2 * ETH_ALEN); in fnic_eth_send()
991 vlan_hdr->h_vlan_encapsulated_proto = eth_hdr->h_proto; in fnic_eth_send()
994 FNIC_FC_SEND|0x80, (char *)eth_hdr, skb->len)) != 0) { in fnic_eth_send()
1028 struct ethhdr *eth_hdr; in fnic_send_frame() local
1046 eth_hdr = (struct ethhdr *)vlan_hdr; in fnic_send_frame()
1052 eth_hdr_len = sizeof(*eth_hdr) + sizeof(*fcoe_hdr); in fnic_send_frame()
1053 eth_hdr = (struct ethhdr *)skb_push(skb, eth_hdr_len); in fnic_send_frame()
1054 eth_hdr->h_proto = htons(ETH_P_FCOE); in fnic_send_frame()
1055 fcoe_hdr = (struct fcoe_hdr *)(eth_hdr + 1); in fnic_send_frame()
1059 fc_fcoe_set_mac(eth_hdr->h_dest, fh->fh_d_id); in fnic_send_frame()
1061 memcpy(eth_hdr->h_dest, fnic->ctlr.dest_addr, ETH_ALEN); in fnic_send_frame()
1062 memcpy(eth_hdr->h_source, fnic->data_src_addr, ETH_ALEN); in fnic_send_frame()
1072 pa = pci_map_single(fnic->pdev, eth_hdr, tot_len, PCI_DMA_TODEVICE); in fnic_send_frame()
1075 (char *)eth_hdr, tot_len)) != 0) { in fnic_send_frame()