diff options
author | Sowmini Varadhan <sowmini.varadhan@oracle.com> | 2014-10-30 16:45:58 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-30 23:56:22 (GMT) |
commit | 7bd68bfd51f611ba61b3afdbd23ea9580c312bf5 (patch) | |
tree | 9501a4317de63002416c6a7d7552cae89d9c6e83 /drivers/net/ethernet/sun/sunvnet.c | |
parent | cd2145358e7a5bb1798a185e5ef199ea49c69dd7 (diff) | |
download | linux-7bd68bfd51f611ba61b3afdbd23ea9580c312bf5.tar.xz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sun/sunvnet.c b/drivers/net/ethernet/sun/sunvnet.c index c390a27..7ada479 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; |