Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netpfil/ipfw/dn_sched_qfq.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 | ||||
#ifdef QFQ_DEBUG | #ifdef QFQ_DEBUG | ||||
#define _P64 unsigned long long /* cast for printing uint64_t */ | #define _P64 unsigned long long /* cast for printing uint64_t */ | ||||
struct qfq_sched; | struct qfq_sched; | ||||
▲ Show 20 Lines • Show All 779 Lines • ▼ Show 20 Lines | static struct dn_alg qfq_desc = { | ||||
_SI( .config = ) NULL, | _SI( .config = ) NULL, | ||||
_SI( .destroy = ) NULL, | _SI( .destroy = ) NULL, | ||||
_SI( .new_sched = ) qfq_new_sched, | _SI( .new_sched = ) qfq_new_sched, | ||||
_SI( .free_sched = ) NULL, | _SI( .free_sched = ) NULL, | ||||
_SI( .new_fsk = ) qfq_new_fsk, | _SI( .new_fsk = ) qfq_new_fsk, | ||||
_SI( .free_fsk = ) NULL, | _SI( .free_fsk = ) NULL, | ||||
_SI( .new_queue = ) qfq_new_queue, | _SI( .new_queue = ) qfq_new_queue, | ||||
_SI( .free_queue = ) qfq_free_queue, | _SI( .free_queue = ) qfq_free_queue, | ||||
#ifdef NEW_AQM | |||||
_SI( .getconfig = ) NULL, | |||||
#endif | |||||
}; | }; | ||||
DECLARE_DNSCHED_MODULE(dn_qfq, &qfq_desc); | DECLARE_DNSCHED_MODULE(dn_qfq, &qfq_desc); | ||||
#ifdef QFQ_DEBUG | #ifdef QFQ_DEBUG | ||||
static void | static void | ||||
dump_groups(struct qfq_sched *q, uint32_t mask) | dump_groups(struct qfq_sched *q, uint32_t mask) | ||||
{ | { | ||||
Show All 30 Lines |