]> Git Repo - qemu.git/commit
dp8393x: Flush packets when link comes up
authorFam Zheng <[email protected]>
Wed, 15 Jul 2015 10:19:12 +0000 (18:19 +0800)
committerStefan Hajnoczi <[email protected]>
Mon, 27 Jul 2015 13:12:18 +0000 (14:12 +0100)
commit4594f93a732f1f5936c3a5225481586e24bffa9e
tree090bc45dedad1ddaeefa6e9e54a95024fab1449a
parent1ef4a6069f8b4c09c3383cd4b8e27b6ff25b2d41
dp8393x: Flush packets when link comes up

.can_receive callback changes semantics that once return 0, backend will
try sending again until explicitly flushed, change the device to meet
that.

dp8393x_can_receive checks SONIC_CR_RXEN bit in SONIC_CR register and
SONIC_ISR_RBE bit in SONIC_ISR register, try flushing the queue when
either bit is being updated.

Signed-off-by: Fam Zheng <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Jason Wang <[email protected]>
Message-id: 1436955553[email protected]
Signed-off-by: Stefan Hajnoczi <[email protected]>
hw/net/dp8393x.c
This page took 0.026005 seconds and 4 git commands to generate.