File tree 1 file changed +8
-2
lines changed 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -4815,6 +4815,7 @@ static inline void ____napi_schedule(struct softnet_data *sd,
4815
4815
}
4816
4816
4817
4817
use_local_napi :
4818
+ DEBUG_NET_WARN_ON_ONCE (!list_empty (& napi -> poll_list ));
4818
4819
list_add_tail (& napi -> poll_list , & sd -> poll_list );
4819
4820
WRITE_ONCE (napi -> list_owner , smp_processor_id ());
4820
4821
/* If not called from net_rx_action()
@@ -7476,9 +7477,14 @@ static int napi_poll(struct napi_struct *n, struct list_head *repoll)
7476
7477
7477
7478
work = __napi_poll (n , & do_repoll );
7478
7479
7479
- if (do_repoll )
7480
+ if (do_repoll ) {
7481
+ #if defined(CONFIG_DEBUG_NET )
7482
+ if (unlikely (!napi_is_scheduled (n )))
7483
+ pr_crit ("repoll requested for device %s %ps but napi is not scheduled.\n" ,
7484
+ n -> dev -> name , n -> poll );
7485
+ #endif
7480
7486
list_add_tail (& n -> poll_list , repoll );
7481
-
7487
+ }
7482
7488
netpoll_poll_unlock (have );
7483
7489
7484
7490
return work ;
You can’t perform that action at this time.
0 commit comments