mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 07:20:47 +03:00
[hyperv] Receive all VMBus messages in a poll
Allow for elision of transmitted TCP ACKs by handling all received VMBus messages in each network device poll operation. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -435,9 +435,11 @@ static struct vmbus_channel_operations netvsc_channel_operations = {
|
|||||||
*/
|
*/
|
||||||
static void netvsc_poll ( struct rndis_device *rndis ) {
|
static void netvsc_poll ( struct rndis_device *rndis ) {
|
||||||
struct netvsc_device *netvsc = rndis->priv;
|
struct netvsc_device *netvsc = rndis->priv;
|
||||||
|
struct vmbus_device *vmdev = netvsc->vmdev;
|
||||||
|
|
||||||
/* Poll VMBus device */
|
/* Poll VMBus device */
|
||||||
vmbus_poll ( netvsc->vmdev );
|
while ( vmbus_has_data ( vmdev ) )
|
||||||
|
vmbus_poll ( vmdev );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user