pktgen.c (5a84d159061d914c8dd4aa372ac6e9529c2be453) | pktgen.c (09fe3ef46c5a2cc65d173df9518013e208eb3ba3) |
---|---|
1/* 2 * Authors: 3 * Copyright 2001, 2002 by Robert Olsson <robert.olsson@its.uu.se> 4 * Uppsala University and 5 * Swedish University of Agricultural Sciences 6 * 7 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> 8 * Ben Greear <greearb@candelatech.com> --- 115 unchanged lines hidden (view full) --- 124#include <linux/vmalloc.h> 125#include <linux/unistd.h> 126#include <linux/string.h> 127#include <linux/ptrace.h> 128#include <linux/errno.h> 129#include <linux/ioport.h> 130#include <linux/interrupt.h> 131#include <linux/capability.h> | 1/* 2 * Authors: 3 * Copyright 2001, 2002 by Robert Olsson <robert.olsson@its.uu.se> 4 * Uppsala University and 5 * Swedish University of Agricultural Sciences 6 * 7 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> 8 * Ben Greear <greearb@candelatech.com> --- 115 unchanged lines hidden (view full) --- 124#include <linux/vmalloc.h> 125#include <linux/unistd.h> 126#include <linux/string.h> 127#include <linux/ptrace.h> 128#include <linux/errno.h> 129#include <linux/ioport.h> 130#include <linux/interrupt.h> 131#include <linux/capability.h> |
132#include <linux/freezer.h> |
|
132#include <linux/delay.h> 133#include <linux/timer.h> 134#include <linux/list.h> 135#include <linux/init.h> 136#include <linux/skbuff.h> 137#include <linux/netdevice.h> 138#include <linux/inet.h> 139#include <linux/inetdevice.h> --- 3188 unchanged lines hidden (view full) --- 3328 t->control &= ~(T_REMDEVALL); 3329 } 3330 3331 if (t->control & T_REMDEV) { 3332 pktgen_rem_one_if(t); 3333 t->control &= ~(T_REMDEV); 3334 } 3335 | 133#include <linux/delay.h> 134#include <linux/timer.h> 135#include <linux/list.h> 136#include <linux/init.h> 137#include <linux/skbuff.h> 138#include <linux/netdevice.h> 139#include <linux/inet.h> 140#include <linux/inetdevice.h> --- 3188 unchanged lines hidden (view full) --- 3329 t->control &= ~(T_REMDEVALL); 3330 } 3331 3332 if (t->control & T_REMDEV) { 3333 pktgen_rem_one_if(t); 3334 t->control &= ~(T_REMDEV); 3335 } 3336 |
3337 try_to_freeze(); 3338 |
|
3336 set_current_state(TASK_INTERRUPTIBLE); 3337 } 3338 3339 PG_DEBUG(printk("pktgen: %s stopping all device\n", t->tsk->comm)); 3340 pktgen_stop(t); 3341 3342 PG_DEBUG(printk("pktgen: %s removing all device\n", t->tsk->comm)); 3343 pktgen_rem_all_ifs(t); --- 296 unchanged lines hidden --- | 3339 set_current_state(TASK_INTERRUPTIBLE); 3340 } 3341 3342 PG_DEBUG(printk("pktgen: %s stopping all device\n", t->tsk->comm)); 3343 pktgen_stop(t); 3344 3345 PG_DEBUG(printk("pktgen: %s removing all device\n", t->tsk->comm)); 3346 pktgen_rem_all_ifs(t); --- 296 unchanged lines hidden --- |