Ignore:
Timestamp:
2019-02-05T20:25:48Z (6 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.

File:
1 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 */
Note: See TracChangeset for help on using the changeset viewer.