mirror of https://github.com/xemu-project/xemu.git
nvnet: Add trace for descriptor stores
This commit is contained in:
parent
8bfefd4a27
commit
556b08cd88
|
@ -359,6 +359,9 @@ static void store_ring_desc(NvNetState *s, dma_addr_t desc_addr,
|
|||
{
|
||||
PCIDevice *d = PCI_DEVICE(s);
|
||||
|
||||
trace_nvnet_desc_store(desc_addr, desc.buffer_addr, desc.length,
|
||||
desc.flags);
|
||||
|
||||
struct RingDesc raw_desc = {
|
||||
.buffer_addr = cpu_to_le32(desc.buffer_addr),
|
||||
.length = cpu_to_le16(desc.length),
|
||||
|
@ -424,8 +427,6 @@ static ssize_t dma_packet_to_guest(NvNetState *s, const uint8_t *buf,
|
|||
desc.flags = NV_RX_BIT4 | NV_RX_DESCRIPTORVALID;
|
||||
store_ring_desc(s, cur_desc_addr, desc);
|
||||
|
||||
NVNET_DPRINTF("Updated ring descriptor: Length: 0x%x, Flags: 0x%x\n",
|
||||
desc.length, desc.flags);
|
||||
set_intr_status(s, NVNET_IRQ_STATUS_RX);
|
||||
|
||||
advance_next_rx_ring_desc_addr(s);
|
||||
|
|
|
@ -20,3 +20,4 @@ nvnet_link_status_changed(bool status) "New link status: %d"
|
|||
nvnet_cant_rx(bool rx_en, bool dma_en, bool link_up, bool buf_avail) "Cant rx: rx_en:%d dma_en:%d link_up:%d buf_avail:%d"
|
||||
nvnet_cant_tx(bool tx_en, bool dma_en, bool link_up) "Cant tx: tx_en:%d dma_en:%d link_up:%d"
|
||||
nvnet_update_irq(uint32_t status, uint32_t mask) "IRQ: status:%08x mask:%08x"
|
||||
nvnet_desc_store(uint32_t desc_addr, uint32_t buf_addr, uint16_t length, uint16_t flags) "Updated descriptor addr %08x buf %08x length %04x flags %04x"
|
||||
|
|
Loading…
Reference in New Issue