diff options
author | Sebastian Andrzej Siewior <[email protected]> | 2022-11-29 17:48:11 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-12-01 20:26:21 -0800 |
commit | d5c7652eb16fa203d82546e0285136d7b321ffa9 (patch) | |
tree | e98c92e28017a77f928408f6d45017bcf26daa1f /lib/mpi/mpi-mod.c | |
parent | 0c74d9f79ec4299365bbe803baa736ae0068179e (diff) |
hsr: Disable netpoll.
The hsr device is a software device. Its
net_device_ops::ndo_start_xmit() routine will process the packet and
then pass the resulting skb to dev_queue_xmit().
During processing, hsr acquires a lock with spin_lock_bh()
(hsr_add_node()) which needs to be promoted to the _irq() suffix in
order to avoid a potential deadlock.
Then there are the warnings in dev_queue_xmit() (due to
local_bh_disable() with disabled interrupts) left.
Instead trying to address those (there is qdisc and…) for netpoll sake,
just disable netpoll on hsr.
Disable netpoll on hsr and replace the _irqsave() locking with _bh().
Fixes: f421436a591d3 ("net/hsr: Add support for the High-availability Seamless Redundancy protocol (HSRv0)")
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions