Lines Matching defs:pktgen_dev

257 struct pktgen_dev {  struct
261 struct proc_dir_entry *entry; /* proc file */
262 struct pktgen_thread *pg_thread;/* the owner */
263 struct list_head list; /* chaining in the thread's run-queue */
264 struct rcu_head rcu; /* freed by RCU */
266 int running; /* if false, the test will stop */
271 __u32 flags;
272 int xmit_mode;
273 int min_pkt_size;
274 int max_pkt_size;
275 int pkt_overhead; /* overhead for MPLS, VLANs, IPSEC etc */
276 int nfrags;
277 int removal_mark; /* non-zero => the device is marked for
280 struct page *page;
281 u64 delay; /* nano-seconds */
283 __u64 count; /* Default No packets to send */
284 __u64 sofar; /* How many pkts we've sent so far */
285 __u64 tx_bytes; /* How many bytes we've transmitted */
286 __u64 errors; /* Errors when trying to transmit, */
290 __u32 clone_count;
291 int last_ok; /* Was last skb sent?
295 ktime_t next_tx;
296 ktime_t started_at;
297 ktime_t stopped_at;
298 u64 idle_acc; /* nano-seconds */
300 __u32 seq_num;
302 int clone_skb; /*
312 char dst_min[IP_NAME_SZ]; /* IP, ie 1.2.3.4 */
313 char dst_max[IP_NAME_SZ]; /* IP, ie 1.2.3.4 */
314 char src_min[IP_NAME_SZ]; /* IP, ie 1.2.3.4 */
315 char src_max[IP_NAME_SZ]; /* IP, ie 1.2.3.4 */
317 struct in6_addr in6_saddr;
318 struct in6_addr in6_daddr;
319 struct in6_addr cur_in6_daddr;
320 struct in6_addr cur_in6_saddr;
322 struct in6_addr min_in6_daddr;
323 struct in6_addr max_in6_daddr;
324 struct in6_addr min_in6_saddr;
325 struct in6_addr max_in6_saddr;
330 __be32 saddr_min; /* inclusive, source IP address */
331 __be32 saddr_max; /* exclusive, source IP address */
332 __be32 daddr_min; /* inclusive, dest IP address */
333 __be32 daddr_max; /* exclusive, dest IP address */
335 __u16 udp_src_min; /* inclusive, source UDP port */
336 __u16 udp_src_max; /* exclusive, source UDP port */
337 __u16 udp_dst_min; /* inclusive, dest UDP port */
338 __u16 udp_dst_max; /* exclusive, dest UDP port */
341 __u8 tos; /* six MSB of (former) IPv4 TOS
343 __u8 traffic_class; /* ditto for the (former) Traffic Class in IPv6
347 unsigned int nr_labels; /* Depth of stack, 0 = no MPLS */
348 __be32 labels[MAX_MPLS_LABELS];
351 __u8 vlan_p;
352 __u8 vlan_cfi;
353 __u16 vlan_id; /* 0xffff means no vlan tag */
355 __u8 svlan_p;
356 __u8 svlan_cfi;
357 __u16 svlan_id; /* 0xffff means no svlan tag */
359 __u32 src_mac_count; /* How many MACs to iterate through */
360 __u32 dst_mac_count; /* How many MACs to iterate through */
362 unsigned char dst_mac[ETH_ALEN];
363 unsigned char src_mac[ETH_ALEN];
365 __u32 cur_dst_mac_offset;
366 __u32 cur_src_mac_offset;
367 __be32 cur_saddr;
368 __be32 cur_daddr;
369 __u16 ip_id;
370 __u16 cur_udp_dst;
371 __u16 cur_udp_src;
372 __u16 cur_queue_map;
373 __u32 cur_pkt_size;
374 __u32 last_pkt_size;
376 __u8 hh[14];
385 __u16 pad; /* pad out the hh struct to an even 16 bytes */
387 struct sk_buff *skb; /* skb we are to transmit next, used for when we
390 struct net_device *odev; /* The out-going device.
398 char odevname[32];
399 struct flow_state *flows;
400 unsigned int cflows; /* Concurrent flows (config) */
401 unsigned int lflow; /* Flow length (config) */
402 unsigned int nflows; /* accumulated flows (stats) */
403 unsigned int curfl; /* current sequenced flow (state)*/
405 u16 queue_map_min;
406 u16 queue_map_max;
407 __u32 skb_priority; /* skb priority field */
408 unsigned int burst; /* number of duplicated packets to burst */
409 int node; /* Memory node */
412 __u8 ipsmode; /* IPSEC mode (config) */
413 __u8 ipsproto; /* IPSEC type (config) */
414 __u32 spi;
415 struct xfrm_dst xdst;
416 struct dst_ops dstops;
418 char result[512];