Lines Matching refs:vlan_hdr
982 struct vlan_ethhdr *vlan_hdr; in fnic_eth_send() local
987 vlan_hdr = (struct vlan_ethhdr *)skb_push(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()
990 vlan_hdr->h_vlan_proto = htons(ETH_P_8021Q); in fnic_eth_send()
991 vlan_hdr->h_vlan_encapsulated_proto = eth_hdr->h_proto; in fnic_eth_send()
992 vlan_hdr->h_vlan_TCI = htons(fnic->vlan_id); in fnic_eth_send()
1029 struct vlan_ethhdr *vlan_hdr; in fnic_send_frame() local
1044 eth_hdr_len = sizeof(*vlan_hdr) + sizeof(*fcoe_hdr); in fnic_send_frame()
1045 vlan_hdr = (struct vlan_ethhdr *)skb_push(skb, eth_hdr_len); in fnic_send_frame()
1046 eth_hdr = (struct ethhdr *)vlan_hdr; in fnic_send_frame()
1047 vlan_hdr->h_vlan_proto = htons(ETH_P_8021Q); in fnic_send_frame()
1048 vlan_hdr->h_vlan_encapsulated_proto = htons(ETH_P_FCOE); in fnic_send_frame()
1049 vlan_hdr->h_vlan_TCI = htons(fnic->vlan_id); in fnic_send_frame()
1050 fcoe_hdr = (struct fcoe_hdr *)(vlan_hdr + 1); in fnic_send_frame()