Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4736edc7 authored by Yongbae Park's avatar Yongbae Park Committed by David S. Miller
Browse files

ibmveth: enable interrupts after napi_complete()



The interrupt is enabled before napi_complete(). A network timeout
occurs if the interrupt handler is called before napi_complete().

Fix the bug by enabling the interrupt after napi_complete().

Signed-off-by: default avatarYongbae Park <yongbae2@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5778d39d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1136,6 +1136,8 @@ static int ibmveth_poll(struct napi_struct *napi, int budget)
	ibmveth_replenish_task(adapter);

	if (frames_processed < budget) {
		napi_complete(napi);

		/* We think we are done - reenable interrupts,
		 * then check once more to make sure we are done.
		 */
@@ -1144,8 +1146,6 @@ static int ibmveth_poll(struct napi_struct *napi, int budget)

		BUG_ON(lpar_rc != H_SUCCESS);

		napi_complete(napi);

		if (ibmveth_rxq_pending_buffer(adapter) &&
		    napi_reschedule(napi)) {
			lpar_rc = h_vio_signal(adapter->vdev->unit_address,