mbox series

[v2,net-next,0/3] fsl/qbman: in_interrupt() cleanup.

Message ID 20201101232257.3028508-1-bigeasy@linutronix.de
Headers show
Series fsl/qbman: in_interrupt() cleanup. | expand

Message

Sebastian Andrzej Siewior Nov. 1, 2020, 11:22 p.m. UTC
This is the in_interrupt() clean for FSL DPAA framework and the two
users. 

The `napi' parameter has been renamed to `sched_napi', the other parts
are same as in the previous post [0].

[0] https://lkml.kernel.org/r/20201027225454.3492351-1-bigeasy@linutronix.de

Sebastian

Comments

Horia Geanta Nov. 2, 2020, 9:13 p.m. UTC | #1
On 11/2/2020 1:23 AM, Sebastian Andrzej Siewior wrote:
> The driver uses in_irq() + in_serving_softirq() magic to decide if NAPI

> scheduling is required or packet processing.

> 

> The usage of in_*() in drivers is phased out and Linus clearly requested

> that code which changes behaviour depending on context should either be

> separated or the context be conveyed in an argument passed by the caller,

> which usually knows the context.

> 

> Use the `sched_napi' argument passed by the callback. It is set true if

> called from the interrupt handler and NAPI should be scheduled.

> 

> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>

> Cc: "Horia Geantă" <horia.geanta@nxp.com>

> Cc: Aymen Sghaier <aymen.sghaier@nxp.com>

> Cc: Herbert Xu <herbert@gondor.apana.org.au>

> Cc: "David S. Miller" <davem@davemloft.net>

> Cc: Madalin Bucur <madalin.bucur@nxp.com>

> Cc: Jakub Kicinski <kuba@kernel.org>

> Cc: Li Yang <leoyang.li@nxp.com>

> Cc: linux-crypto@vger.kernel.org

> Cc: netdev@vger.kernel.org

> Cc: linuxppc-dev@lists.ozlabs.org

> Cc: linux-arm-kernel@lists.infradead.org

Reviewed-by: Horia Geantă <horia.geanta@nxp.com>


Thanks,
Horia
Madalin Bucur Nov. 3, 2020, 11:24 a.m. UTC | #2
> -----Original Message-----

> From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>

> Sent: 02 November 2020 01:23

> To: netdev@vger.kernel.org

> Cc: Horia Geanta <horia.geanta@nxp.com>; Aymen Sghaier

> <aymen.sghaier@nxp.com>; Herbert Xu <herbert@gondor.apana.org.au>; David S.

> Miller <davem@davemloft.net>; Madalin Bucur <madalin.bucur@nxp.com>; Jakub

> Kicinski <kuba@kernel.org>; Leo Li <leoyang.li@nxp.com>; Thomas Gleixner

> <tglx@linutronix.de>; Sebastian Andrzej Siewior <bigeasy@linutronix.de>

> Subject: [PATCH v2 net-next 0/3] fsl/qbman: in_interrupt() cleanup.

> 

> This is the in_interrupt() clean for FSL DPAA framework and the two

> users.

> 

> The `napi' parameter has been renamed to `sched_napi', the other parts

> are same as in the previous post [0].

> 

> https://lore.kernel.org/linux-arm-kernel/20201027225454.3492351-1-bigeasy@linutronix.de/

> 

> Sebastian


For the series,

Reviewed-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Camelia Alexandra Groza Nov. 3, 2020, 12:44 p.m. UTC | #3
> -----Original Message-----

> From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>

> Sent: Monday, November 2, 2020 01:23

> To: netdev@vger.kernel.org

> Cc: Horia Geanta <horia.geanta@nxp.com>; Aymen Sghaier

> <aymen.sghaier@nxp.com>; Herbert Xu <herbert@gondor.apana.org.au>;

> David S. Miller <davem@davemloft.net>; Madalin Bucur

> <madalin.bucur@nxp.com>; Jakub Kicinski <kuba@kernel.org>; Leo Li

> <leoyang.li@nxp.com>; Thomas Gleixner <tglx@linutronix.de>; Sebastian

> Andrzej Siewior <bigeasy@linutronix.de>

> Subject: [PATCH v2 net-next 0/3] fsl/qbman: in_interrupt() cleanup.

> 

> This is the in_interrupt() clean for FSL DPAA framework and the two

> users.

> 

> The `napi' parameter has been renamed to `sched_napi', the other parts

> are same as in the previous post [0].

> 

> [0] https://lore.kernel.org/linux-arm-kernel/20201027225454.3492351-1-bigeasy@linutronix.de/

> 

> Sebastian


Tested-by: Camelia Groza <camelia.groza@nxp.com>
Jakub Kicinski Nov. 4, 2020, 1:42 a.m. UTC | #4
On Mon,  2 Nov 2020 00:22:54 +0100 Sebastian Andrzej Siewior wrote:
> This is the in_interrupt() clean for FSL DPAA framework and the two
> users. 
> 
> The `napi' parameter has been renamed to `sched_napi', the other parts
> are same as in the previous post [0].
> 
> [0] https://lkml.kernel.org/r/20201027225454.3492351-1-bigeasy@linutronix.de

Applied, thanks everyone!