OpenCloudOS-Kernel/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
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02: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 treewide: use kv[mz]alloc* rather than opencoded variants 2017-05-08 17:15:13 -07:00
cxgb3_ioctl.h chelsio: Replace zero-length array with flexible-array member 2020-02-24 15:26:17 -08:00
cxgb3_main.c net: cxgb3: Cleanup in_interrupt() usage 2020-09-29 14:02:53 -07:00
cxgb3_offload.c net: cxgb3: remove redundant null pointer check before kfree_skb 2018-09-21 09:04:37 -07:00
cxgb3_offload.h
firmware_exports.h
l2t.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
l2t.h cxgb3/l2t: Fix undefined behaviour 2019-04-01 15:01:46 -07:00
mc5.c
regs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sge.c net: cxgb3: Cleanup in_interrupt() usage 2020-09-29 14:02:53 -07:00
sge_defs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
t3_cpl.h chelsio: Replace zero-length array with flexible-array member 2020-02-24 15:26:17 -08:00
t3_hw.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
t3cdev.h RDMA/cxgb3: Annotate an RCU pointer 2017-10-14 20:47:05 -04:00
version.h net/chelsio: Delete drive and module versions 2020-03-03 17:54:54 -08:00
vsc8211.c
xgmac.c