Lines Matching defs:cfg_s
15 struct cfg_s { struct
16 int ac;
17 char * const *av;
19 const char *name;
20 int loops;
21 struct timeval time;
24 uint32_t _enqueue;
25 uint32_t drop;
26 uint32_t pending;
27 uint32_t dequeue;
30 int32_t th_min, th_max; /* thresholds for hysteresis; negative means per flow */
32 int maxburst;
34 int lmin, lmax; /* packet len */
35 int flows; /* number of flows */
36 int flowsets; /* number of flowsets */
37 int wsum; /* sum of weights of all flows */
39 int max_y; /* max random number in the generation */
41 int cur_fs; /* used in generation, between 0 and max_y - 1 */
43 const char *fs_config; /* flowset config */
44 int can_dequeue;
45 int burst; /* count of packets sent in a burst */
46 struct mbuf *tosend; /* packet to send -- also flag to enqueue */
48 struct mbuf *freelist;
50 struct mbuf *head, *tail; /* a simple tailq */
53 int (*enq)(struct dn_sch_inst *, struct dn_queue *,
55 struct mbuf * (*deq)(struct dn_sch_inst *);
57 uint32_t schk_len;
58 uint32_t q_len; /* size of a queue including sched-fields */
59 uint32_t si_len; /* size of a sch_inst including sched-fields */
60 char *q; /* array of flow queues */
66 struct dn_schk *sched;
72 struct dn_sch_inst *si;
73 struct dn_fsk *fs; /* array of flowsets */
76 int state; /* 0 = going up (enqueue), 1: going down (dequeue) */
105 static void controller(struct cfg_s *c); argument