Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/ipfw/ip_dn_glue.c
Show First 20 Lines • Show All 561 Lines • ▼ Show 20 Lines | dn_compat_calc_size(void) | ||||
int need = 0; | int need = 0; | ||||
/* XXX use FreeBSD 8 struct size */ | /* XXX use FreeBSD 8 struct size */ | ||||
/* NOTE: | /* NOTE: | ||||
* - half scheduler: schk_count/2 | * - half scheduler: schk_count/2 | ||||
* - all flowset: fsk_count | * - all flowset: fsk_count | ||||
* - all flowset queues: queue_count | * - all flowset queues: queue_count | ||||
* - all pipe queue: si_count | * - all pipe queue: si_count | ||||
*/ | */ | ||||
need += dn_cfg.schk_count * sizeof(struct dn_pipe8) / 2; | need += V_dn_cfg.schk_count * sizeof(struct dn_pipe8) / 2; | ||||
need += dn_cfg.fsk_count * sizeof(struct dn_flow_set); | need += V_dn_cfg.fsk_count * sizeof(struct dn_flow_set); | ||||
need += dn_cfg.si_count * sizeof(struct dn_flow_queue8); | need += V_dn_cfg.si_count * sizeof(struct dn_flow_queue8); | ||||
need += dn_cfg.queue_count * sizeof(struct dn_flow_queue8); | need += V_dn_cfg.queue_count * sizeof(struct dn_flow_queue8); | ||||
return need; | return need; | ||||
} | } | ||||
int | int | ||||
dn_c_copy_q (void *_ni, void *arg) | dn_c_copy_q (void *_ni, void *arg) | ||||
{ | { | ||||
struct copy_args *a = arg; | struct copy_args *a = arg; | ||||
▲ Show 20 Lines • Show All 265 Lines • Show Last 20 Lines |