FreeBSD/sys/netpfil/ipfw/dn_sched_fq_pie.c
/*
 * Return FQ-PIE scheduler configurations
 * the configurations for the scheduler is passed to userland.
 */
Return FQ-PIE scheduler configurations
the configurations for the scheduler is passed to userland.
Return FQ - PIE scheduler configurations the configurations for the scheduler is passed to userland .
static int 
fq_pie_getconfig (struct dn_schk *_schk, struct dn_extra_parms *ep) {
	struct fq_pie_schk *schk = (struct fq_pie_schk *)(_schk+1);
	struct dn_sch_fq_pie_parms *fqp_cfg;
	fqp_cfg = &schk->cfg;
	strcpy(ep->name, fq_pie_desc.name);
	ep->par[0] = fqp_cfg->pcfg.qdelay_ref;
	ep->par[1] = fqp_cfg->pcfg.tupdate;
	ep->par[2] = fqp_cfg->pcfg.max_burst;
	ep->par[3] = fqp_cfg->pcfg.max_ecnth;
	ep->par[4] = fqp_cfg->pcfg.alpha;
	ep->par[5] = fqp_cfg->pcfg.beta;
	ep->par[6] = fqp_cfg->pcfg.flags;
	ep->par[7] = fqp_cfg->quantum;
	ep->par[8] = fqp_cfg->limit;
	ep->par[9] = fqp_cfg->flows_cnt;
	return 0;
}
static int fq_pie_getconfig ( struct dn_schk * _schk , struct dn_extra_parms * ep ) { struct fq_pie_schk * schk = ( struct fq_pie_schk * ) ( _schk + 1 ) ; struct dn_sch_fq_pie_parms * fqp_cfg ; fqp_cfg = & schk -> cfg ; strcpy ( ep -> name , fq_pie_desc . name ) ; ep -> par [ 0 ] = fqp_cfg -> pcfg . qdelay_ref ; ep -> par [ 1 ] = fqp_cfg -> pcfg . tupdate ; ep -> par [ 2 ] = fqp_cfg -> pcfg . max_burst ; ep -> par [ 3 ] = fqp_cfg -> pcfg . max_ecnth ; ep -> par [ 4 ] = fqp_cfg -> pcfg . alpha ; ep -> par [ 5 ] = fqp_cfg -> pcfg . beta ; ep -> par [ 6 ] = fqp_cfg -> pcfg . flags ; ep -> par [ 7 ] = fqp_cfg -> quantum ; ep -> par [ 8 ] = fqp_cfg -> limit ; ep -> par [ 9 ] = fqp_cfg -> flows_cnt ; return 0 ; }
Return FQ-PIE scheduler configurations
 the configurations for the scheduler is passed to userland.
Return FQ - PIE scheduler configurations the configurations for the scheduler is passed to userland .