Skip to content

Commit

Permalink
[hyperv] Receive all VMBus messages in a poll
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mcb30 committed Dec 20, 2014
1 parent 6729146 commit 4e68216
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/drivers/net/netvsc.c
Expand Up @@ -435,9 +435,11 @@ static struct vmbus_channel_operations netvsc_channel_operations = {
*/
static void netvsc_poll ( struct rndis_device *rndis ) {
struct netvsc_device *netvsc = rndis->priv;
struct vmbus_device *vmdev = netvsc->vmdev;

/* Poll VMBus device */
vmbus_poll ( netvsc->vmdev );
while ( vmbus_has_data ( vmdev ) )
vmbus_poll ( vmdev );
}

/**
Expand Down

0 comments on commit 4e68216

Please sign in to comment.