]> git.ipfire.org Git - thirdparty/qemu.git/commit
net/net_rx_pkt: Use iovec for net_rx_pkt_set_protocols()
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Tue, 23 May 2023 02:42:58 +0000 (11:42 +0900)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 24 May 2023 13:34:46 +0000 (16:34 +0300)
commit5c4f2f1b60e7d95ccc16262c3040d4c5f2f62126
treeccf5be32e43e831b37f5728c35bd3a51a20f59a0
parentba3c7bf178c8a94b2635a655918ee7ae991a9cf7
net/net_rx_pkt: Use iovec for net_rx_pkt_set_protocols()

igb does not properly ensure the buffer passed to
net_rx_pkt_set_protocols() is contiguous for the entire L2/L3/L4 header.
Allow it to pass scattered data to net_rx_pkt_set_protocols().

Fixes: 3a977deebe ("Intrdocue igb device emulation")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Sriram Yagnaraman <sriram.yagnaraman@est.tech>
Signed-off-by: Jason Wang <jasowang@redhat.com>
(cherry picked from commit 2f0fa232b8c330df029120a6824c8be3d4eb5cae)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/net/igb_core.c
hw/net/net_rx_pkt.c
hw/net/net_rx_pkt.h
hw/net/virtio-net.c
hw/net/vmxnet3.c
include/net/eth.h
net/eth.c