Lines Matching defs:pktgen_dev
267 struct pktgen_dev { struct
271 struct proc_dir_entry *entry; /* proc file */
272 struct pktgen_thread *pg_thread;/* the owner */
273 struct list_head list; /* chaining in the thread's run-queue */
274 struct rcu_head rcu; /* freed by RCU */
276 int running; /* if false, the test will stop */
281 __u32 flags;
282 int xmit_mode;
283 int min_pkt_size;
284 int max_pkt_size;
285 int pkt_overhead; /* overhead for MPLS, VLANs, IPSEC etc */
286 int nfrags;
287 int removal_mark; /* non-zero => the device is marked for
290 struct page *page;
291 u64 delay; /* nano-seconds */
293 __u64 count; /* Default No packets to send */
294 __u64 sofar; /* How many pkts we've sent so far */
295 __u64 tx_bytes; /* How many bytes we've transmitted */
296 __u64 errors; /* Errors when trying to transmit, */
300 __u32 clone_count;
301 int last_ok; /* Was last skb sent?
305 ktime_t next_tx;
306 ktime_t started_at;
307 ktime_t stopped_at;
308 u64 idle_acc; /* nano-seconds */
310 __u32 seq_num;
312 int clone_skb; /*
322 char dst_min[IP_NAME_SZ]; /* IP, ie 1.2.3.4 */
323 char dst_max[IP_NAME_SZ]; /* IP, ie 1.2.3.4 */
324 char src_min[IP_NAME_SZ]; /* IP, ie 1.2.3.4 */
325 char src_max[IP_NAME_SZ]; /* IP, ie 1.2.3.4 */
327 struct in6_addr in6_saddr;
328 struct in6_addr in6_daddr;
329 struct in6_addr cur_in6_daddr;
330 struct in6_addr cur_in6_saddr;
332 struct in6_addr min_in6_daddr;
333 struct in6_addr max_in6_daddr;
334 struct in6_addr min_in6_saddr;
335 struct in6_addr max_in6_saddr;
340 __be32 saddr_min; /* inclusive, source IP address */
341 __be32 saddr_max; /* exclusive, source IP address */
342 __be32 daddr_min; /* inclusive, dest IP address */
343 __be32 daddr_max; /* exclusive, dest IP address */
345 __u16 udp_src_min; /* inclusive, source UDP port */
346 __u16 udp_src_max; /* exclusive, source UDP port */
347 __u16 udp_dst_min; /* inclusive, dest UDP port */
348 __u16 udp_dst_max; /* exclusive, dest UDP port */
351 __u8 tos; /* six MSB of (former) IPv4 TOS
353 __u8 traffic_class; /* ditto for the (former) Traffic Class in IPv6
357 unsigned int n_imix_entries;
358 struct imix_pkt imix_entries[MAX_IMIX_ENTRIES];
360 __u8 imix_distribution[IMIX_PRECISION];
363 unsigned int nr_labels; /* Depth of stack, 0 = no MPLS */
364 __be32 labels[MAX_MPLS_LABELS];
367 __u8 vlan_p;
368 __u8 vlan_cfi;
369 __u16 vlan_id; /* 0xffff means no vlan tag */
371 __u8 svlan_p;
372 __u8 svlan_cfi;
373 __u16 svlan_id; /* 0xffff means no svlan tag */
375 __u32 src_mac_count; /* How many MACs to iterate through */
376 __u32 dst_mac_count; /* How many MACs to iterate through */
378 unsigned char dst_mac[ETH_ALEN];
379 unsigned char src_mac[ETH_ALEN];
381 __u32 cur_dst_mac_offset;
382 __u32 cur_src_mac_offset;
383 __be32 cur_saddr;
384 __be32 cur_daddr;
385 __u16 ip_id;
386 __u16 cur_udp_dst;
387 __u16 cur_udp_src;
388 __u16 cur_queue_map;
389 __u32 cur_pkt_size;
390 __u32 last_pkt_size;
392 __u8 hh[14];
401 __u16 pad; /* pad out the hh struct to an even 16 bytes */
403 struct sk_buff *skb; /* skb we are to transmit next, used for when we
406 struct net_device *odev; /* The out-going device.
414 netdevice_tracker dev_tracker;
415 char odevname[32];
416 struct flow_state *flows;
417 unsigned int cflows; /* Concurrent flows (config) */
418 unsigned int lflow; /* Flow length (config) */
419 unsigned int nflows; /* accumulated flows (stats) */
420 unsigned int curfl; /* current sequenced flow (state)*/
422 u16 queue_map_min;
423 u16 queue_map_max;
424 __u32 skb_priority; /* skb priority field */
425 unsigned int burst; /* number of duplicated packets to burst */
426 int node; /* Memory node */
429 __u8 ipsmode; /* IPSEC mode (config) */
430 __u8 ipsproto; /* IPSEC type (config) */
431 __u32 spi;
432 struct xfrm_dst xdst;
433 struct dst_ops dstops;
435 char result[512];