FreeBSD/sys/netpfil/ipfw/dn_sched_fq_codel.c
/*
 * Return fq_codel scheduler configurations
 * the configurations for the scheduler is passed to userland.
 */
Return fq_codel scheduler configurations
the configurations for the scheduler is passed to userland.
Return fq_codel scheduler configurations the configurations for the scheduler is passed to userland .
static int 
fq_codel_getconfig (struct dn_schk *_schk, struct dn_extra_parms *ep) {
	struct fq_codel_schk *schk = (struct fq_codel_schk *)(_schk+1);
	struct dn_sch_fq_codel_parms *fqc_cfg;
	fqc_cfg = &schk->cfg;
	strcpy(ep->name, fq_codel_desc.name);
	ep->par[0] = fqc_cfg->ccfg.target / AQM_TIME_1US;
	ep->par[1] = fqc_cfg->ccfg.interval / AQM_TIME_1US;
	ep->par[2] = fqc_cfg->ccfg.flags;
	ep->par[3] = fqc_cfg->quantum;
	ep->par[4] = fqc_cfg->limit;
	ep->par[5] = fqc_cfg->flows_cnt;
	return 0;
}
static int fq_codel_getconfig ( struct dn_schk * _schk , struct dn_extra_parms * ep ) { struct fq_codel_schk * schk = ( struct fq_codel_schk * ) ( _schk + 1 ) ; struct dn_sch_fq_codel_parms * fqc_cfg ; fqc_cfg = & schk -> cfg ; strcpy ( ep -> name , fq_codel_desc . name ) ; ep -> par [ 0 ] = fqc_cfg -> ccfg . target / AQM_TIME_1US ; ep -> par [ 1 ] = fqc_cfg -> ccfg . interval / AQM_TIME_1US ; ep -> par [ 2 ] = fqc_cfg -> ccfg . flags ; ep -> par [ 3 ] = fqc_cfg -> quantum ; ep -> par [ 4 ] = fqc_cfg -> limit ; ep -> par [ 5 ] = fqc_cfg -> flows_cnt ; return 0 ; }
Return fq_codel scheduler configurations
 the configurations for the scheduler is passed to userland.
Return fq_codel scheduler configurations the configurations for the scheduler is passed to userland .