Lines Matching defs:pktgen_dev

239 struct pktgen_dev {  struct
243 struct proc_dir_entry *entry; /* proc file */
244 struct pktgen_thread *pg_thread;/* the owner */
245 struct list_head list; /* chaining in the thread's run-queue */
246 struct rcu_head rcu; /* freed by RCU */
248 int running; /* if false, the test will stop */
253 __u32 flags;
254 int removal_mark; /* non-zero => the device is marked for
257 int min_pkt_size;
258 int max_pkt_size;
259 int pkt_overhead; /* overhead for MPLS, VLANs, IPSEC etc */
260 int nfrags;
261 struct page *page;
262 u64 delay; /* nano-seconds */
264 __u64 count; /* Default No packets to send */
265 __u64 sofar; /* How many pkts we've sent so far */
266 __u64 tx_bytes; /* How many bytes we've transmitted */
267 __u64 errors; /* Errors when trying to transmit, */
271 __u64 allocated_skbs;
272 __u32 clone_count;
273 int last_ok; /* Was last skb sent?
277 ktime_t next_tx;
278 ktime_t started_at;
279 ktime_t stopped_at;
280 u64 idle_acc; /* nano-seconds */
282 __u32 seq_num;
284 int clone_skb; /*
294 char dst_min[IP_NAME_SZ]; /* IP, ie 1.2.3.4 */
295 char dst_max[IP_NAME_SZ]; /* IP, ie 1.2.3.4 */
296 char src_min[IP_NAME_SZ]; /* IP, ie 1.2.3.4 */
297 char src_max[IP_NAME_SZ]; /* IP, ie 1.2.3.4 */
299 struct in6_addr in6_saddr;
300 struct in6_addr in6_daddr;
301 struct in6_addr cur_in6_daddr;
302 struct in6_addr cur_in6_saddr;
304 struct in6_addr min_in6_daddr;
305 struct in6_addr max_in6_daddr;
306 struct in6_addr min_in6_saddr;
307 struct in6_addr max_in6_saddr;
312 __be32 saddr_min; /* inclusive, source IP address */
313 __be32 saddr_max; /* exclusive, source IP address */
314 __be32 daddr_min; /* inclusive, dest IP address */
315 __be32 daddr_max; /* exclusive, dest IP address */
317 __u16 udp_src_min; /* inclusive, source UDP port */
318 __u16 udp_src_max; /* exclusive, source UDP port */
319 __u16 udp_dst_min; /* inclusive, dest UDP port */
320 __u16 udp_dst_max; /* exclusive, dest UDP port */
323 __u8 tos; /* six MSB of (former) IPv4 TOS
325 __u8 traffic_class; /* ditto for the (former) Traffic Class in IPv6
329 unsigned int nr_labels; /* Depth of stack, 0 = no MPLS */
330 __be32 labels[MAX_MPLS_LABELS];
333 __u8 vlan_p;
334 __u8 vlan_cfi;
335 __u16 vlan_id; /* 0xffff means no vlan tag */
337 __u8 svlan_p;
338 __u8 svlan_cfi;
339 __u16 svlan_id; /* 0xffff means no svlan tag */
341 __u32 src_mac_count; /* How many MACs to iterate through */
342 __u32 dst_mac_count; /* How many MACs to iterate through */
344 unsigned char dst_mac[ETH_ALEN];
345 unsigned char src_mac[ETH_ALEN];
347 __u32 cur_dst_mac_offset;
348 __u32 cur_src_mac_offset;
349 __be32 cur_saddr;
350 __be32 cur_daddr;
351 __u16 ip_id;
352 __u16 cur_udp_dst;
353 __u16 cur_udp_src;
354 __u16 cur_queue_map;
355 __u32 cur_pkt_size;
356 __u32 last_pkt_size;
358 __u8 hh[14];
367 __u16 pad; /* pad out the hh struct to an even 16 bytes */
369 struct sk_buff *skb; /* skb we are to transmit next, used for when we
372 struct net_device *odev; /* The out-going device.
380 char odevname[32];
381 struct flow_state *flows;
382 unsigned int cflows; /* Concurrent flows (config) */
383 unsigned int lflow; /* Flow length (config) */
384 unsigned int nflows; /* accumulated flows (stats) */
385 unsigned int curfl; /* current sequenced flow (state)*/
387 u16 queue_map_min;
388 u16 queue_map_max;
389 __u32 skb_priority; /* skb priority field */
390 unsigned int burst; /* number of duplicated packets to burst */
391 int node; /* Memory node */
394 __u8 ipsmode; /* IPSEC mode (config) */
395 __u8 ipsproto; /* IPSEC type (config) */
396 __u32 spi;
397 struct dst_entry dst;
398 struct dst_ops dstops;
400 char result[512];