Lines Matching defs:pktgen_dev

243 struct pktgen_dev {  struct
247 struct proc_dir_entry *entry; /* proc file */
248 struct pktgen_thread *pg_thread;/* the owner */
249 struct list_head list; /* chaining in the thread's run-queue */
250 struct rcu_head rcu; /* freed by RCU */
252 int running; /* if false, the test will stop */
257 __u32 flags;
258 int xmit_mode;
259 int min_pkt_size;
260 int max_pkt_size;
261 int pkt_overhead; /* overhead for MPLS, VLANs, IPSEC etc */
262 int nfrags;
263 int removal_mark; /* non-zero => the device is marked for
266 struct page *page;
267 u64 delay; /* nano-seconds */
269 __u64 count; /* Default No packets to send */
270 __u64 sofar; /* How many pkts we've sent so far */
271 __u64 tx_bytes; /* How many bytes we've transmitted */
272 __u64 errors; /* Errors when trying to transmit, */
276 __u32 clone_count;
277 int last_ok; /* Was last skb sent?
281 ktime_t next_tx;
282 ktime_t started_at;
283 ktime_t stopped_at;
284 u64 idle_acc; /* nano-seconds */
286 __u32 seq_num;
288 int clone_skb; /*
298 char dst_min[IP_NAME_SZ]; /* IP, ie 1.2.3.4 */
299 char dst_max[IP_NAME_SZ]; /* IP, ie 1.2.3.4 */
300 char src_min[IP_NAME_SZ]; /* IP, ie 1.2.3.4 */
301 char src_max[IP_NAME_SZ]; /* IP, ie 1.2.3.4 */
303 struct in6_addr in6_saddr;
304 struct in6_addr in6_daddr;
305 struct in6_addr cur_in6_daddr;
306 struct in6_addr cur_in6_saddr;
308 struct in6_addr min_in6_daddr;
309 struct in6_addr max_in6_daddr;
310 struct in6_addr min_in6_saddr;
311 struct in6_addr max_in6_saddr;
316 __be32 saddr_min; /* inclusive, source IP address */
317 __be32 saddr_max; /* exclusive, source IP address */
318 __be32 daddr_min; /* inclusive, dest IP address */
319 __be32 daddr_max; /* exclusive, dest IP address */
321 __u16 udp_src_min; /* inclusive, source UDP port */
322 __u16 udp_src_max; /* exclusive, source UDP port */
323 __u16 udp_dst_min; /* inclusive, dest UDP port */
324 __u16 udp_dst_max; /* exclusive, dest UDP port */
327 __u8 tos; /* six MSB of (former) IPv4 TOS
329 __u8 traffic_class; /* ditto for the (former) Traffic Class in IPv6
333 unsigned int nr_labels; /* Depth of stack, 0 = no MPLS */
334 __be32 labels[MAX_MPLS_LABELS];
337 __u8 vlan_p;
338 __u8 vlan_cfi;
339 __u16 vlan_id; /* 0xffff means no vlan tag */
341 __u8 svlan_p;
342 __u8 svlan_cfi;
343 __u16 svlan_id; /* 0xffff means no svlan tag */
345 __u32 src_mac_count; /* How many MACs to iterate through */
346 __u32 dst_mac_count; /* How many MACs to iterate through */
348 unsigned char dst_mac[ETH_ALEN];
349 unsigned char src_mac[ETH_ALEN];
351 __u32 cur_dst_mac_offset;
352 __u32 cur_src_mac_offset;
353 __be32 cur_saddr;
354 __be32 cur_daddr;
355 __u16 ip_id;
356 __u16 cur_udp_dst;
357 __u16 cur_udp_src;
358 __u16 cur_queue_map;
359 __u32 cur_pkt_size;
360 __u32 last_pkt_size;
362 __u8 hh[14];
371 __u16 pad; /* pad out the hh struct to an even 16 bytes */
373 struct sk_buff *skb; /* skb we are to transmit next, used for when we
376 struct net_device *odev; /* The out-going device.
384 char odevname[32];
385 struct flow_state *flows;
386 unsigned int cflows; /* Concurrent flows (config) */
387 unsigned int lflow; /* Flow length (config) */
388 unsigned int nflows; /* accumulated flows (stats) */
389 unsigned int curfl; /* current sequenced flow (state)*/
391 u16 queue_map_min;
392 u16 queue_map_max;
393 __u32 skb_priority; /* skb priority field */
394 unsigned int burst; /* number of duplicated packets to burst */
395 int node; /* Memory node */
398 __u8 ipsmode; /* IPSEC mode (config) */
399 __u8 ipsproto; /* IPSEC type (config) */
400 __u32 spi;
401 struct dst_entry dst;
402 struct dst_ops dstops;
404 char result[512];