X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fcore%2Fpktgen.c;h=bca787fdbc51ae9fe77e576ffee89c3f7770faca;hb=40b77c943468236c6dfad3e7b94348fe70c70331;hp=75215331b0457b122088f91d8f4d67d4382d27dc;hpb=0806ca2ab3ef7d7a1bd41a980f661a13ba11acb5;p=linux-2.6 diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 75215331b0..bca787fdbc 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -3465,6 +3465,8 @@ static int pktgen_thread_worker(void *arg) set_current_state(TASK_INTERRUPTIBLE); + set_freezable(); + while (!kthread_should_stop()) { pkt_dev = next_to_run(t);