Skip to content

Commit 3300685

Browse files
etantilovanguy11
authored andcommitted
idpf: disable local BH when scheduling napi for marker packets
Fix softirq's not being handled during napi_schedule() call when receiving marker packets for queue disable by disabling local bottom half. The issue can be seen on ifdown: NOHZ tick-stop error: Non-RCU local softirq work is pending, handler #8!!! Using ftrace to catch the failing scenario: ifconfig [003] d.... 22739.830624: softirq_raise: vec=3 [action=NET_RX] <idle>-0 [003] ..s.. 22739.831357: softirq_entry: vec=3 [action=NET_RX] No interrupt and CPU is idle. After the patch when disabling local BH before calling napi_schedule: ifconfig [003] d.... 22993.928336: softirq_raise: vec=3 [action=NET_RX] ifconfig [003] ..s1. 22993.928337: softirq_entry: vec=3 [action=NET_RX] Fixes: c2d548c ("idpf: add TX splitq napi poll support") Reviewed-by: Jesse Brandeburg <[email protected]> Reviewed-by: Przemek Kitszel <[email protected]> Signed-off-by: Emil Tantilov <[email protected]> Signed-off-by: Alan Brady <[email protected]> Reviewed-by: Simon Horman <[email protected]> Tested-by: Krishneil Singh <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 4daa873 commit 3300685

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/intel/idpf/idpf_virtchnl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2087,8 +2087,10 @@ int idpf_send_disable_queues_msg(struct idpf_vport *vport)
20872087
set_bit(__IDPF_Q_POLL_MODE, vport->txqs[i]->flags);
20882088

20892089
/* schedule the napi to receive all the marker packets */
2090+
local_bh_disable();
20902091
for (i = 0; i < vport->num_q_vectors; i++)
20912092
napi_schedule(&vport->q_vectors[i].napi);
2093+
local_bh_enable();
20922094

20932095
return idpf_wait_for_marker_event(vport);
20942096
}

0 commit comments

Comments
 (0)