mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
etsec: Flush queue when rx buffer is consumed
The BH will be scheduled when etsec->rx_buffer_len is becoming 0, which is the condition of queuing. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Jason Wang <jasowang@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 1436955553-22791-7-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
b6cb6610c2
commit
575bafd1f3
3 changed files with 15 additions and 1 deletions
|
@ -144,6 +144,8 @@ typedef struct eTSEC {
|
|||
QEMUBH *bh;
|
||||
struct ptimer_state *ptimer;
|
||||
|
||||
/* Whether we should flush the rx queue when buffer becomes available. */
|
||||
bool need_flush;
|
||||
} eTSEC;
|
||||
|
||||
#define TYPE_ETSEC_COMMON "eTSEC"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue