mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
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>
This commit is contained in:
parent
cd2145358e
commit
7bd68bfd51
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue