sunvnet: Reset LDC_EVENT_DATA_READY when napi completes.
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Thu, 30 Oct 2014 16:45:58 +0000 (12:45 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Oct 2014 23:56:22 +0000 (19:56 -0400)
When vnet_event_napi re-enables interrupts, it should
reset LDC_EVENT_DATA_READY as an optimization.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/sunvnet.c

index c390a2784546545536833a18de19bf414b6aebd5..7ada479f9604fb0c676d580ae45e81e95b170c07 100644 (file)
@@ -760,6 +760,7 @@ static int vnet_poll(struct napi_struct *napi, int budget)
 
        if (processed < budget) {
                napi_complete(napi);
+               port->rx_event &= ~LDC_EVENT_DATA_READY;
                vio_set_intr(vio->vdev->rx_ino, HV_INTR_ENABLED);
        }
        return processed;