Searched refs:vhdr (Results 1 – 9 of 9) sorted by relevance
/qemu/hw/net/ |
H A D | vmxnet3.c | 210 vmxnet3_dump_virt_hdr(struct virtio_net_hdr *vhdr) in vmxnet3_dump_virt_hdr() argument 214 vhdr->flags, vhdr->gso_type, vhdr->hdr_len, vhdr->gso_size, in vmxnet3_dump_virt_hdr() 215 vhdr->csum_start, vhdr->csum_offset); in vmxnet3_dump_virt_hdr() 838 struct virtio_net_hdr *vhdr; in vmxnet3_rx_need_csum_calculate() local 844 vhdr = net_rx_pkt_get_vhdr(pkt); in vmxnet3_rx_need_csum_calculate() 845 if (!VMXNET_FLAG_IS_SET(vhdr->flags, VIRTIO_NET_HDR_F_NEEDS_CSUM)) { in vmxnet3_rx_need_csum_calculate() 856 vmxnet3_dump_virt_hdr(vhdr); in vmxnet3_rx_need_csum_calculate() 859 if (pkt_len < (vhdr->csum_start + vhdr->csum_offset + 2)) { in vmxnet3_rx_need_csum_calculate() 862 pkt_len, vhdr->csum_start, vhdr->csum_offset); in vmxnet3_rx_need_csum_calculate() 866 data = (uint8_t *)pkt_data + vhdr->csum_start; in vmxnet3_rx_need_csum_calculate() [all …]
|
H A D | e1000x_common.c | 61 bool e1000x_rx_vlan_filter(uint32_t *mac, const struct vlan_header *vhdr) in e1000x_rx_vlan_filter() argument 64 uint16_t vid = lduw_be_p(&vhdr->h_tci); in e1000x_rx_vlan_filter()
|
H A D | net_rx_pkt.h | 278 struct virtio_net_hdr *vhdr);
|
H A D | e1000x_common.h | 110 bool e1000x_rx_vlan_filter(uint32_t *mac, const struct vlan_header *vhdr);
|
H A D | net_rx_pkt.c | 424 struct virtio_net_hdr *vhdr) in net_rx_pkt_set_vhdr() argument 428 memcpy(&pkt->virt_hdr, vhdr, sizeof pkt->virt_hdr); in net_rx_pkt_set_vhdr()
|
H A D | virtio-net.c | 2741 struct virtio_net_hdr vhdr; in virtio_net_flush_tx() local 2756 if (iov_to_buf(out_sg, out_num, 0, &vhdr, sizeof(vhdr)) < in virtio_net_flush_tx() 2757 sizeof(vhdr)) { in virtio_net_flush_tx() 2761 virtio_net_hdr_swap(vdev, &vhdr); in virtio_net_flush_tx() 2762 sg2[0].iov_base = &vhdr; in virtio_net_flush_tx() 2763 sg2[0].iov_len = sizeof(vhdr); in virtio_net_flush_tx() 2765 sizeof(vhdr), -1); in virtio_net_flush_tx()
|
H A D | e1000e_core.c | 1127 struct virtio_net_hdr *vhdr; in e1000e_build_rx_metadata() local 1190 vhdr = net_rx_pkt_get_vhdr(pkt); in e1000e_build_rx_metadata() 1192 if (!(vhdr->flags & VIRTIO_NET_HDR_F_DATA_VALID) && in e1000e_build_rx_metadata() 1193 !(vhdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM)) { in e1000e_build_rx_metadata() 1613 struct virtio_net_hdr *vhdr = net_rx_pkt_get_vhdr(pkt); in e1000e_rx_fix_l4_csum() local 1615 if (vhdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) { in e1000e_rx_fix_l4_csum()
|
H A D | igb_core.c | 1348 struct virtio_net_hdr *vhdr; in igb_build_rx_metadata_common() local 1377 vhdr = net_rx_pkt_get_vhdr(pkt); in igb_build_rx_metadata_common() 1379 if (!(vhdr->flags & VIRTIO_NET_HDR_F_DATA_VALID) && in igb_build_rx_metadata_common() 1380 !(vhdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM)) { in igb_build_rx_metadata_common() 1971 struct virtio_net_hdr *vhdr = net_rx_pkt_get_vhdr(pkt); in igb_rx_fix_l4_csum() local 1973 if (vhdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) { in igb_rx_fix_l4_csum()
|
/qemu/net/ |
H A D | eth.c | 27 struct vlan_header *vhdr = PKT_GET_VLAN_HDR(ehdr); in eth_setup_vlan_headers() local 29 memmove(vhdr + 1, vhdr, *ehdr_size - ETH_HLEN); in eth_setup_vlan_headers() 30 vhdr->h_tci = cpu_to_be16(vlan_tag); in eth_setup_vlan_headers() 31 vhdr->h_proto = ehdr->h_proto; in eth_setup_vlan_headers() 33 *ehdr_size += sizeof(*vhdr); in eth_setup_vlan_headers()
|