Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netpfil/ipfw/dn_sched_wf2q.c
Show All 37 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 | ||||
#ifndef MAX64 | #ifndef MAX64 | ||||
#define MAX64(x,y) (( (int64_t) ( (y)-(x) )) > 0 ) ? (y) : (x) | #define MAX64(x,y) (( (int64_t) ( (y)-(x) )) > 0 ) ? (y) : (x) | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 308 Lines • ▼ Show 20 Lines | static struct dn_alg wf2qp_desc = { | ||||
_SI( .new_sched = ) wf2qp_new_sched, | _SI( .new_sched = ) wf2qp_new_sched, | ||||
_SI( .free_sched = ) wf2qp_free_sched, | _SI( .free_sched = ) wf2qp_free_sched, | ||||
_SI( .new_fsk = ) wf2qp_new_fsk, | _SI( .new_fsk = ) wf2qp_new_fsk, | ||||
_SI( .free_fsk = ) NULL, | _SI( .free_fsk = ) NULL, | ||||
_SI( .new_queue = ) wf2qp_new_queue, | _SI( .new_queue = ) wf2qp_new_queue, | ||||
_SI( .free_queue = ) wf2qp_free_queue, | _SI( .free_queue = ) wf2qp_free_queue, | ||||
#ifdef NEW_AQM | |||||
_SI( .getconfig = ) NULL, | |||||
#endif | |||||
}; | }; | ||||
DECLARE_DNSCHED_MODULE(dn_wf2qp, &wf2qp_desc); | DECLARE_DNSCHED_MODULE(dn_wf2qp, &wf2qp_desc); |