File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -835,14 +835,14 @@ static void nsim_dev_trap_report_work(struct work_struct *work)
835
835
trap_report_dw .work );
836
836
nsim_dev = nsim_trap_data -> nsim_dev ;
837
837
838
- /* For each running port and enabled packet trap, generate a UDP
839
- * packet with a random 5-tuple and report it.
840
- */
841
838
if (!devl_trylock (priv_to_devlink (nsim_dev ))) {
842
- schedule_delayed_work (& nsim_dev -> trap_data -> trap_report_dw , 0 );
839
+ schedule_delayed_work (& nsim_dev -> trap_data -> trap_report_dw , 1 );
843
840
return ;
844
841
}
845
842
843
+ /* For each running port and enabled packet trap, generate a UDP
844
+ * packet with a random 5-tuple and report it.
845
+ */
846
846
list_for_each_entry (nsim_dev_port , & nsim_dev -> port_list , list ) {
847
847
if (!netif_running (nsim_dev_port -> ns -> netdev ))
848
848
continue ;
You can’t perform that action at this time.
0 commit comments