[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>
pull/33/head
Michael Brown 2014-12-20 12:40:17 +00:00
parent 67291465ea
commit 4e6821662c
1 changed files with 3 additions and 1 deletions

View File

@ -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 );
}
/**