Skip to content

Commit

Permalink
Merge pull request torvalds#418 from motomuman/vnet-header-flag-setti…
Browse files Browse the repository at this point in the history
…ng-fix

lkl: fix vnet header flag handling with the LKL_VIRTIO_NET_F_GUEST_CSUM
  • Loading branch information
thehajime authored Feb 19, 2018
2 parents fdb7473 + 0cbb3d4 commit fd7bb8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/lkl/lib/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ static int net_enqueue(struct virtio_dev *dev, int q, struct virtio_req *req)
header->num_buffers = i;

if (dev->device_features & BIT(LKL_VIRTIO_NET_F_GUEST_CSUM))
header->flags = LKL_VIRTIO_NET_HDR_F_DATA_VALID;
header->flags |= LKL_VIRTIO_NET_HDR_F_DATA_VALID;
} else {
bad_request("tried to push on non-existent queue");
return -1;
Expand Down

0 comments on commit fd7bb8a

Please sign in to comment.