linux_dsm_epyc7002/drivers/net/ethernet/broadcom
Michael Chan 0eaa24b971 bnxt_en: Fix RTNL lock usage on bnxt_update_link().
bnxt_update_link() is called from multiple code paths.  Most callers,
such as open, ethtool, already hold RTNL.  Only the caller bnxt_sp_task()
does not.  So it is a bug to take RTNL inside bnxt_update_link().

Fix it by removing the RTNL inside bnxt_update_link().  The function
now expects the caller to always hold RTNL.

In bnxt_sp_task(), call bnxt_rtnl_lock_sp() before calling
bnxt_update_link().  We also need to move the call to the end of
bnxt_sp_task() since it will be clearing the BNXT_STATE_IN_SP_TASK bit.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-25 13:27:13 -05:00
..
bnx2x clocksource: Use a plain u64 instead of cycle_t 2016-12-25 11:04:12 +01:00
bnxt bnxt_en: Fix RTNL lock usage on bnxt_update_link(). 2017-01-25 13:27:13 -05:00
genet Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-12-03 12:29:53 -05:00
b44.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
b44.h net: ethernet: broadcom: b44: use phydev from struct net_device 2016-09-19 21:39:11 -04:00
bcm63xx_enet.c bcm63xx_enet: avoid uninitialized variable warning 2017-01-20 11:45:37 -05:00
bcm63xx_enet.h net: ethernet: broadcom: bcm63xx: use phydev from struct net_device 2016-09-19 21:39:12 -04:00
bcmsysport.c net: systemport: Decouple flow control from __bcm_sysport_tx_reclaim 2017-01-13 12:19:07 -05:00
bcmsysport.h net: ethernet: bcmsysport: use phydev from struct net_device 2016-06-19 16:15:55 -07:00
bgmac-bcma-mdio.c net: ethernet: bgmac: Add platform device support 2016-07-09 18:10:41 -04:00
bgmac-bcma.c net: ethernet: bgmac: device tree phy enablement 2016-11-07 13:11:22 -05:00
bgmac-platform.c net: ethernet: bgmac: add NS2 support 2016-11-07 13:11:22 -05:00
bgmac.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-11-15 10:54:36 -05:00
bgmac.h net: ethernet: bgmac: add NS2 support 2016-11-07 13:11:22 -05:00
bnx2_fw.h
bnx2.c bnx2: use READ_ONCE() instead of barrier() 2016-11-21 11:32:34 -05:00
bnx2.h ethernet/broadcom: use core min/max MTU checking 2016-10-18 11:34:18 -04:00
cnic_defs.h
cnic_if.h
cnic.c
cnic.h
Kconfig Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2016-12-12 19:56:15 -08:00
Makefile net: ethernet: bgmac: Add platform device support 2016-07-09 18:10:41 -04:00
sb1250-mac.c ethernet: fix min/max MTU typos 2016-10-27 16:18:50 -04:00
tg3.c tg3: Fix race condition in tg3_get_stats64(). 2017-01-07 21:35:04 -05:00
tg3.h