Lines Matching refs:vhdr

221 vmxnet3_dump_virt_hdr(struct virtio_net_hdr *vhdr)  in vmxnet3_dump_virt_hdr()  argument
225 vhdr->flags, vhdr->gso_type, vhdr->hdr_len, vhdr->gso_size, in vmxnet3_dump_virt_hdr()
226 vhdr->csum_start, vhdr->csum_offset); in vmxnet3_dump_virt_hdr()
849 struct virtio_net_hdr *vhdr; in vmxnet3_rx_need_csum_calculate() local
855 vhdr = net_rx_pkt_get_vhdr(pkt); in vmxnet3_rx_need_csum_calculate()
856 if (!VMXNET_FLAG_IS_SET(vhdr->flags, VIRTIO_NET_HDR_F_NEEDS_CSUM)) { in vmxnet3_rx_need_csum_calculate()
867 vmxnet3_dump_virt_hdr(vhdr); in vmxnet3_rx_need_csum_calculate()
870 if (pkt_len < (vhdr->csum_start + vhdr->csum_offset + 2)) { in vmxnet3_rx_need_csum_calculate()
873 pkt_len, vhdr->csum_start, vhdr->csum_offset); in vmxnet3_rx_need_csum_calculate()
877 data = (uint8_t *)pkt_data + vhdr->csum_start; in vmxnet3_rx_need_csum_calculate()
878 len = pkt_len - vhdr->csum_start; in vmxnet3_rx_need_csum_calculate()
880 stw_be_p(data + vhdr->csum_offset, in vmxnet3_rx_need_csum_calculate()
883 vhdr->flags &= ~VIRTIO_NET_HDR_F_NEEDS_CSUM; in vmxnet3_rx_need_csum_calculate()
884 vhdr->flags |= VIRTIO_NET_HDR_F_DATA_VALID; in vmxnet3_rx_need_csum_calculate()
893 struct virtio_net_hdr *vhdr; in vmxnet3_rx_update_descr() local
901 vhdr = net_rx_pkt_get_vhdr(pkt); in vmxnet3_rx_update_descr()
908 csum_ok = VMXNET_FLAG_IS_SET(vhdr->flags, VIRTIO_NET_HDR_F_DATA_VALID) || in vmxnet3_rx_update_descr()
909 VMXNET_FLAG_IS_SET(vhdr->flags, VIRTIO_NET_HDR_F_NEEDS_CSUM); in vmxnet3_rx_update_descr()
911 offload_type = vhdr->gso_type & ~VIRTIO_NET_HDR_GSO_ECN; in vmxnet3_rx_update_descr()