|
@@ -1802,7 +1802,7 @@ static int visornic_probe(struct visor_device *dev)
|
|
|
|
|
|
/* TODO: Setup Interrupt information */
|
|
/* TODO: Setup Interrupt information */
|
|
/* Let's start our threads to get responses */
|
|
/* Let's start our threads to get responses */
|
|
- netif_napi_add(netdev, &devdata->napi, visornic_poll, 64);
|
|
|
|
|
|
+ netif_napi_add(netdev, &devdata->napi, visornic_poll, NAPI_WEIGHT);
|
|
|
|
|
|
setup_timer(&devdata->irq_poll_timer, poll_for_irq,
|
|
setup_timer(&devdata->irq_poll_timer, poll_for_irq,
|
|
(unsigned long)devdata);
|
|
(unsigned long)devdata);
|
|
@@ -1832,9 +1832,6 @@ static int visornic_probe(struct visor_device *dev)
|
|
goto cleanup_napi_add;
|
|
goto cleanup_napi_add;
|
|
}
|
|
}
|
|
|
|
|
|
- /* Let's start our threads to get responses */
|
|
|
|
- netif_napi_add(netdev, &devdata->napi, visornic_poll, NAPI_WEIGHT);
|
|
|
|
-
|
|
|
|
/* Note: Interrupts have to be enable before the while
|
|
/* Note: Interrupts have to be enable before the while
|
|
* loop below because the napi routine is responsible for
|
|
* loop below because the napi routine is responsible for
|
|
* setting enab_dis_acked
|
|
* setting enab_dis_acked
|