android_kernel_xiaomi_sm8350/drivers/net/mlx4
Dongdong Deng 4871953c0e drivers/net: fixed drivers that support netpoll use ndo_start_xmit()
The NETPOLL API requires that interrupts remain disabled in
netpoll_send_skb(). The use of "A functions set" in the NETPOLL API
callbacks causes the interrupts to get enabled and can lead to kernel
instability.

The solution is to use "B functions set" to prevent the irqs from
getting enabled while in netpoll_send_skb().

A functions set:
local_irq_disable()/local_irq_enable()
spin_lock_irq()/spin_unlock_irq()
spin_trylock_irq()/spin_unlock_irq()

B functions set:
local_irq_save()/local_irq_restore()
spin_lock_irqsave()/spin_unlock_irqrestore()
spin_trylock_irqsave()/spin_unlock_irqrestore()

Signed-off-by: Dongdong Deng <dongdong.deng@windriver.com>
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-08-23 19:51:03 -07:00
..
alloc.c
catas.c
cmd.c mlx4_core: Handle multi-physical function devices 2009-07-06 16:10:03 -07:00
cq.c
en_cq.c
en_ethtool.c drivers/net/mlx4: Adjust constant 2009-07-21 13:00:46 -07:00
en_main.c
en_netdev.c mlx4_en: Remove redundant refill code on RX 2009-06-21 19:18:07 -07:00
en_port.c
en_port.h
en_resources.c
en_rx.c mlx4_en: Fix read buffer overflow in mlx4_en_complete_rx_desc() 2009-08-09 21:47:01 -07:00
en_tx.c drivers/net: fixed drivers that support netpoll use ndo_start_xmit() 2009-08-23 19:51:03 -07:00
eq.c
fw.c
fw.h
icm.c
icm.h
intf.c
main.c mlx4_core: Add new ConnectX EN PCI ID 0x6764 2009-07-06 16:10:40 -07:00
Makefile
mcg.c
mlx4_en.h mlx4_en: Remove redundant refill code on RX 2009-06-21 19:18:07 -07:00
mlx4.h
mr.c mlx4_core: Fix dma_sync_single_for_cpu() with matching for_device() calls 2009-06-22 23:07:56 -07:00
pd.c
port.c
profile.c
qp.c
reset.c
sense.c
srq.c