linux/drivers/net/ethernet/chelsio/cxgb3
Thomas Gleixner a17409e73b net: cxgb3: Cleanup in_interrupt() usage
t3_sge_stop() is called from task context and from error handlers in
interrupt context. It relies on in_interrupt() to differentiate the
contexts.

in_interrupt() is deprecated as it is ill defined and does not provide what
it suggests.

Instead of replacing it with some other construct, simply split the
function into t3_sge_stop_dma(), which can be called from any context, and
t3_sge_stop() which can be only called from task context.

This has the advantage that any bogus invocation of t3_sge_stop() from
wrong contexts can be caught by debug kernels instead of being papered over
by the conditional.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-29 14:02:53 -07:00
..
adapter.h net: cxgb3: Cleanup in_interrupt() usage 2020-09-29 14:02:53 -07:00
ael1002.c chelsio: simplify the return expression of t3_ael2020_phy_prep() 2020-09-21 13:49:05 -07:00
aq100x.c
common.h
cxgb3_ctl_defs.h
cxgb3_defs.h
cxgb3_ioctl.h
cxgb3_main.c net: cxgb3: Cleanup in_interrupt() usage 2020-09-29 14:02:53 -07:00
cxgb3_offload.c
cxgb3_offload.h
firmware_exports.h
l2t.c
l2t.h
Makefile
mc5.c
regs.h
sge.c net: cxgb3: Cleanup in_interrupt() usage 2020-09-29 14:02:53 -07:00
sge_defs.h
t3_cpl.h
t3_hw.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
t3cdev.h
version.h
vsc8211.c
xgmac.c