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: 3a977dee ("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>
Showing
- hw/net/igb_core.c 1 addition, 1 deletionhw/net/igb_core.c
- hw/net/net_rx_pkt.c 5 additions, 9 deletionshw/net/net_rx_pkt.c
- hw/net/net_rx_pkt.h 6 additions, 4 deletionshw/net/net_rx_pkt.h
- hw/net/virtio-net.c 5 additions, 2 deletionshw/net/virtio-net.c
- hw/net/vmxnet3.c 6 additions, 1 deletionhw/net/vmxnet3.c
- include/net/eth.h 3 additions, 3 deletionsinclude/net/eth.h
- net/eth.c 8 additions, 10 deletionsnet/eth.c
Loading
Please register or sign in to comment