pktgen.c (f056878332a91ed984a116bad4e7d49aefff9e6e) | pktgen.c (6b80d6a6b4e27fd355641823c5f4ac3f96d072e5) |
---|---|
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> --- 178 unchanged lines hidden (view full) --- 187#define F_VID_RND (1<<9) /* Random VLAN ID */ 188#define F_SVID_RND (1<<10) /* Random SVLAN ID */ 189#define F_FLOW_SEQ (1<<11) /* Sequential flows */ 190#define F_IPSEC_ON (1<<12) /* ipsec on for flows */ 191#define F_QUEUE_MAP_RND (1<<13) /* queue map Random */ 192#define F_QUEUE_MAP_CPU (1<<14) /* queue map mirrors smp_processor_id() */ 193 194/* Thread control flag bits */ | 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> --- 178 unchanged lines hidden (view full) --- 187#define F_VID_RND (1<<9) /* Random VLAN ID */ 188#define F_SVID_RND (1<<10) /* Random SVLAN ID */ 189#define F_FLOW_SEQ (1<<11) /* Sequential flows */ 190#define F_IPSEC_ON (1<<12) /* ipsec on for flows */ 191#define F_QUEUE_MAP_RND (1<<13) /* queue map Random */ 192#define F_QUEUE_MAP_CPU (1<<14) /* queue map mirrors smp_processor_id() */ 193 194/* Thread control flag bits */ |
195#define T_TERMINATE (1<<0) 196#define T_STOP (1<<1) /* Stop run */ 197#define T_RUN (1<<2) /* Start run */ 198#define T_REMDEVALL (1<<3) /* Remove all devs */ 199#define T_REMDEV (1<<4) /* Remove one dev */ | 195#define T_STOP (1<<0) /* Stop run */ 196#define T_RUN (1<<1) /* Start run */ 197#define T_REMDEVALL (1<<2) /* Remove all devs */ 198#define T_REMDEV (1<<3) /* Remove one dev */ |
200 201/* If lock -- can be removed after some work */ 202#define if_lock(t) spin_lock(&(t->if_lock)); 203#define if_unlock(t) spin_unlock(&(t->if_lock)); 204 205/* Used to help with determining the pkts on receive */ 206#define PKTGEN_MAGIC 0xbe9be955 207#define PG_PROC_DIR "pktgen" --- 3660 unchanged lines hidden --- | 199 200/* If lock -- can be removed after some work */ 201#define if_lock(t) spin_lock(&(t->if_lock)); 202#define if_unlock(t) spin_unlock(&(t->if_lock)); 203 204/* Used to help with determining the pkts on receive */ 205#define PKTGEN_MAGIC 0xbe9be955 206#define PG_PROC_DIR "pktgen" --- 3660 unchanged lines hidden --- |