mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 22:17:44 -04:00
Merge branch 'bcmsysport-napi-updates'
Florian Fainelli says: ==================== net: bcmsysport: utilize newer NAPI APIs These two patches are very analoguous to what was already submitted for BCMGENET and switch the SYSTEMPORT driver to utilizing __napi_schedule_irqoff() and napi_complete_done for the RX NAPI context. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -831,7 +831,7 @@ static int bcm_sysport_poll(struct napi_struct *napi, int budget)
|
||||
rdma_writel(priv, priv->rx_c_index, RDMA_CONS_INDEX);
|
||||
|
||||
if (work_done < budget) {
|
||||
napi_complete(napi);
|
||||
napi_complete_done(napi, work_done);
|
||||
/* re-enable RX interrupts */
|
||||
intrl2_0_mask_clear(priv, INTRL2_0_RDMA_MBDONE);
|
||||
}
|
||||
@@ -873,7 +873,7 @@ static irqreturn_t bcm_sysport_rx_isr(int irq, void *dev_id)
|
||||
if (likely(napi_schedule_prep(&priv->napi))) {
|
||||
/* disable RX interrupts */
|
||||
intrl2_0_mask_set(priv, INTRL2_0_RDMA_MBDONE);
|
||||
__napi_schedule(&priv->napi);
|
||||
__napi_schedule_irqoff(&priv->napi);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -916,7 +916,7 @@ static irqreturn_t bcm_sysport_tx_isr(int irq, void *dev_id)
|
||||
|
||||
if (likely(napi_schedule_prep(&txr->napi))) {
|
||||
intrl2_1_mask_set(priv, BIT(ring));
|
||||
__napi_schedule(&txr->napi);
|
||||
__napi_schedule_irqoff(&txr->napi);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user