igb: Fix DMA requester specification for Tx packet
commitf4fdaf009cc85e95a00aba47a6b5b9df920d51c4
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Fri, 24 Mar 2023 09:54:32 +0000 (24 18:54 +0900)
committerJason Wang <jasowang@redhat.com>
Tue, 28 Mar 2023 05:10:55 +0000 (28 13:10 +0800)
tree2c9c8cd8551f9b8a43afca752813d4caaa03adc6
parent212f7b1dac9e4ac344000cc4816097ce2bbe3993
igb: Fix DMA requester specification for Tx packet

igb used to specify the PF as DMA requester when reading Tx packets.
This made Tx requests from VFs to be performed on the address space of
the PF, defeating the purpose of SR-IOV. Add some logic to change the
requester depending on the queue, which can be assigned to a VF.

Fixes: 3a977deebe ("Intrdocue igb device emulation")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/e1000e_core.c
hw/net/igb_core.c
hw/net/net_tx_pkt.c
hw/net/net_tx_pkt.h
hw/net/vmxnet3.c