Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netpfil/ipfw/dn_sched_rr.c
Show All 36 Lines | |||||
#include <sys/module.h> | #include <sys/module.h> | ||||
#include <net/if.h> /* IFNAMSIZ */ | #include <net/if.h> /* IFNAMSIZ */ | ||||
#include <netinet/in.h> | #include <netinet/in.h> | ||||
#include <netinet/ip_var.h> /* ipfw_rule_ref */ | #include <netinet/ip_var.h> /* ipfw_rule_ref */ | ||||
#include <netinet/ip_fw.h> /* flow_id */ | #include <netinet/ip_fw.h> /* flow_id */ | ||||
#include <netinet/ip_dummynet.h> | #include <netinet/ip_dummynet.h> | ||||
#include <netpfil/ipfw/dn_heap.h> | #include <netpfil/ipfw/dn_heap.h> | ||||
#include <netpfil/ipfw/ip_dn_private.h> | #include <netpfil/ipfw/ip_dn_private.h> | ||||
#ifdef NEW_AQM | |||||
#include <netpfil/ipfw/dn_aqm.h> | |||||
#endif | |||||
#include <netpfil/ipfw/dn_sched.h> | #include <netpfil/ipfw/dn_sched.h> | ||||
#else | #else | ||||
#include <dn_test.h> | #include <dn_test.h> | ||||
#endif | #endif | ||||
#define DN_SCHED_RR 3 // XXX Where? | #define DN_SCHED_RR 3 // XXX Where? | ||||
struct rr_queue { | struct rr_queue { | ||||
▲ Show 20 Lines • Show All 251 Lines • ▼ Show 20 Lines | static struct dn_alg rr_desc = { | ||||
_SI( .config = ) rr_config, | _SI( .config = ) rr_config, | ||||
_SI( .destroy = ) NULL, | _SI( .destroy = ) NULL, | ||||
_SI( .new_sched = ) rr_new_sched, | _SI( .new_sched = ) rr_new_sched, | ||||
_SI( .free_sched = ) rr_free_sched, | _SI( .free_sched = ) rr_free_sched, | ||||
_SI( .new_fsk = ) rr_new_fsk, | _SI( .new_fsk = ) rr_new_fsk, | ||||
_SI( .free_fsk = ) NULL, | _SI( .free_fsk = ) NULL, | ||||
_SI( .new_queue = ) rr_new_queue, | _SI( .new_queue = ) rr_new_queue, | ||||
_SI( .free_queue = ) rr_free_queue, | _SI( .free_queue = ) rr_free_queue, | ||||
#ifdef NEW_AQM | |||||
_SI( .getconfig = ) NULL, | |||||
#endif | |||||
}; | }; | ||||
DECLARE_DNSCHED_MODULE(dn_rr, &rr_desc); | DECLARE_DNSCHED_MODULE(dn_rr, &rr_desc); |