summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sun/sunvnet.c
diff options
context:
space:
mode:
authorSowmini Varadhan <sowmini.varadhan@oracle.com>2014-10-30 17:45:58 +0100
committerDavid S. Miller <davem@davemloft.net>2014-10-31 00:56:22 +0100
commit7bd68bfd51f611ba61b3afdbd23ea9580c312bf5 (patch)
tree9501a4317de63002416c6a7d7552cae89d9c6e83 /drivers/net/ethernet/sun/sunvnet.c
parenttcp: Correction to RFC number in comment (diff)
downloadlinux-7bd68bfd51f611ba61b3afdbd23ea9580c312bf5.tar.xz
linux-7bd68bfd51f611ba61b3afdbd23ea9580c312bf5.zip
sunvnet: Reset LDC_EVENT_DATA_READY when napi completes.
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>
Diffstat (limited to 'drivers/net/ethernet/sun/sunvnet.c')
-rw-r--r--drivers/net/ethernet/sun/sunvnet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sun/sunvnet.c b/drivers/net/ethernet/sun/sunvnet.c
index c390a2784546..7ada479f9604 100644
--- a/drivers/net/ethernet/sun/sunvnet.c
+++ b/drivers/net/ethernet/sun/sunvnet.c
@@ -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;