Changeset a1f173d in mainline


Ignore:
Timestamp:
2019-02-05T20:25:48Z (5 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
13eecc4
Parents:
d80fa05
Message:

Use VIRTIO 1.0 layout of virtio_net_hdr_t

When VIRTIO_F_VERSION_1 is negotiated, virtio_net_hdr_t uses the new
layout.

Location:
uspace/drv/nic/virtio-net
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/virtio-net/virtio-net.c

    rd80fa05 ra1f173d  
    346346        memset(hdr, 0, sizeof(virtio_net_hdr_t));
    347347        hdr->gso_type = VIRTIO_NET_HDR_GSO_NONE;
     348        hdr->num_buffers = 0;
    348349
    349350        /* Copy packet data into the buffer just past the header */
  • uspace/drv/nic/virtio-net/virtio-net.h

    rd80fa05 ra1f173d  
    5555        uint16_t csum_start;
    5656        uint16_t csum_offset;
    57 
    58         // XXX: QEMU uses the legacy layout for some reason
    59 #if 0
    6057        uint16_t num_buffers;
    61 #endif
    6258} virtio_net_hdr_t;
    6359
Note: See TracChangeset for help on using the changeset viewer.