[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL V2 18/27] e1000e: Flush all receive queues on receive
From: |
Jason Wang |
Subject: |
[Qemu-devel] [PULL V2 18/27] e1000e: Flush all receive queues on receive enable |
Date: |
Tue, 27 Sep 2016 18:12:58 +0800 |
From: Dmitry Fleytman <address@hidden>
Before this patch first netdev queue only was flushed.
Signed-off-by: Dmitry Fleytman <address@hidden>
Signed-off-by: Jason Wang <address@hidden>
---
hw/net/e1000e.c | 2 +-
hw/net/e1000e_core.c | 2 +-
hw/net/e1000e_core.h | 3 +++
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/hw/net/e1000e.c b/hw/net/e1000e.c
index bad43f4..4994e1c 100644
--- a/hw/net/e1000e.c
+++ b/hw/net/e1000e.c
@@ -400,7 +400,7 @@ static void e1000e_write_config(PCIDevice *pci_dev,
uint32_t address,
if (range_covers_byte(address, len, PCI_COMMAND) &&
(pci_dev->config[PCI_COMMAND] & PCI_COMMAND_MASTER)) {
- qemu_flush_queued_packets(qemu_get_queue(s->nic));
+ e1000e_start_recv(&s->core);
}
}
diff --git a/hw/net/e1000e_core.c b/hw/net/e1000e_core.c
index 03e3c46..ea2a484 100644
--- a/hw/net/e1000e_core.c
+++ b/hw/net/e1000e_core.c
@@ -953,7 +953,7 @@ e1000e_has_rxbufs(E1000ECore *core, const E1000E_RingInfo
*r,
core->rx_desc_buf_size;
}
-static inline void
+void
e1000e_start_recv(E1000ECore *core)
{
int i;
diff --git a/hw/net/e1000e_core.h b/hw/net/e1000e_core.h
index 5f413a9..1ff6978 100644
--- a/hw/net/e1000e_core.h
+++ b/hw/net/e1000e_core.h
@@ -144,3 +144,6 @@ e1000e_receive(E1000ECore *core, const uint8_t *buf, size_t
size);
ssize_t
e1000e_receive_iov(E1000ECore *core, const struct iovec *iov, int iovcnt);
+
+void
+e1000e_start_recv(E1000ECore *core);
--
2.7.4
- [Qemu-devel] [PULL V2 08/27] colo-compare: introduce packet comparison thread, (continued)
- [Qemu-devel] [PULL V2 08/27] colo-compare: introduce packet comparison thread, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 09/27] colo-compare: add TCP, UDP, ICMP packet comparison, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 10/27] filter-rewriter: introduce filter-rewriter initialization, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 11/27] filter-rewriter: track connection and parse packet, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 12/27] filter-rewriter: rewrite tcp packet to keep secondary connection, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 13/27] MAINTAINERS: add maintainer for COLO-proxy, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 14/27] docs: Add documentation for COLO-proxy, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 15/27] e1000: fix buliding complaint, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 16/27] tap: Allow specifying a bridge, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 17/27] net: limit allocation in nc_sendv_compat, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 18/27] e1000e: Flush all receive queues on receive enable,
Jason Wang <=
- [Qemu-devel] [PULL V2 20/27] e1000e: Fix CTRL_EXT.EIAME behavior, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 19/27] e1000e: Flush receive queues on link up, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 21/27] e1000e: Fix PBACLR implementation, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 22/27] e1000e: Fix OTHER interrupts processing for MSI-X, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 23/27] e1000e: Fix spurious RX TCP ACK interrupts, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 24/27] e1000e: Fix EIAC register implementation, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 25/27] net: mcf: limit buffer descriptor count, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 26/27] mcf_fec: fix error in qemu_send_packet argument, Jason Wang, 2016/09/27
- [Qemu-devel] [PULL V2 27/27] imx_fec: fix error in qemu_send_packet argument, Jason Wang, 2016/09/27
- Re: [Qemu-devel] [PULL V2 00/27] Net patches, Peter Maydell, 2016/09/27