[haiku-commits] Change in haiku[r1beta1]: virtio_net: Use proper frame length in receive path.

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 20 Nov 2018 20:59:53 +0000

From Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>:

Alexander von Gluck IV has uploaded this change for review. ( 
https://review.haiku-os.org/722


Change subject: virtio_net: Use proper frame length in receive path.
......................................................................

virtio_net: Use proper frame length in receive path.

Previously the frame length was set to the allocation size of the buffer
itself, which is constant. Use the length returned on dequeing instead,
which tells how much of the buffer was actually filled.

Fixes overly long frames that lead to various problems along the receive
path.
---
M src/add-ons/kernel/drivers/network/virtio/virtio_net.cpp
1 file changed, 6 insertions(+), 2 deletions(-)



  git pull ssh://git.haiku-os.org/haiku refs/changes/22/722/1
--
To view, visit https://review.haiku-os.org/722
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: r1beta1
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2f4641bdf9508f1adc6d2736243366ecf32986ea
Gerrit-Change-Number: 722
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
Gerrit-Reviewer: Michael Lotz <mmlr@xxxxxxxx>

Other related posts:

  • » [haiku-commits] Change in haiku[r1beta1]: virtio_net: Use proper frame length in receive path. - Gerrit