Skip to content

Commit

Permalink
sunvnet: Reset LDC_EVENT_DATA_READY when napi completes.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sowmini Varadhan authored and David S. Miller committed Oct 30, 2014
1 parent cd21453 commit 7bd68bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/sun/sunvnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7bd68bf

Please sign in to comment.