[PATCH v2 net-next 3/3] crypto: caam: Replace in_irq() usage.
Horia Geantă
horia.geanta at nxp.com
Tue Nov 3 08:13:49 AEDT 2020
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 at linutronix.de>
> Cc: "Horia Geantă" <horia.geanta at nxp.com>
> Cc: Aymen Sghaier <aymen.sghaier at nxp.com>
> Cc: Herbert Xu <herbert at gondor.apana.org.au>
> Cc: "David S. Miller" <davem at davemloft.net>
> Cc: Madalin Bucur <madalin.bucur at nxp.com>
> Cc: Jakub Kicinski <kuba at kernel.org>
> Cc: Li Yang <leoyang.li at nxp.com>
> Cc: linux-crypto at vger.kernel.org
> Cc: netdev at vger.kernel.org
> Cc: linuxppc-dev at lists.ozlabs.org
> Cc: linux-arm-kernel at lists.infradead.org
Reviewed-by: Horia Geantă <horia.geanta at nxp.com>
Thanks,
Horia
More information about the Linuxppc-dev
mailing list