Lines 412-417
SYSCTL_INT(_net_link_bridge, OID_AUTO, allow_llz_overlap,
Link Here
|
412 |
"Allow overlap of link-local scope " |
412 |
"Allow overlap of link-local scope " |
413 |
"zones of a bridge interface and the member interfaces"); |
413 |
"zones of a bridge interface and the member interfaces"); |
414 |
|
414 |
|
|
|
415 |
static u_int bridge_uma_reserve = 1; |
416 |
SYSCTL_UINT(_net_link_bridge, OID_AUTO, bridge_uma_reserve, CTLFLAG_RWTUN, |
417 |
&bridge_uma_reserve, 0, "Number of items to pre-allocate for the uma zone"); |
418 |
|
415 |
struct bridge_control { |
419 |
struct bridge_control { |
416 |
int (*bc_func)(struct bridge_softc *, void *); |
420 |
int (*bc_func)(struct bridge_softc *, void *); |
417 |
int bc_argsize; |
421 |
int bc_argsize; |
Lines 554-559
bridge_modevent(module_t mod, int type, void *data)
Link Here
|
554 |
bridge_rtnode_zone = uma_zcreate("bridge_rtnode", |
558 |
bridge_rtnode_zone = uma_zcreate("bridge_rtnode", |
555 |
sizeof(struct bridge_rtnode), NULL, NULL, NULL, NULL, |
559 |
sizeof(struct bridge_rtnode), NULL, NULL, NULL, NULL, |
556 |
UMA_ALIGN_PTR|UMA_ZONE_NOFREE, 0); |
560 |
UMA_ALIGN_PTR|UMA_ZONE_NOFREE, 0); |
|
|
561 |
uma_prealloc(bridge_rtnode_zone, bridge_uma_reserve); |
562 |
uma_zone_reserve(bridge_rtnode_zone, bridge_uma_reserve); |
557 |
bridge_input_p = bridge_input; |
563 |
bridge_input_p = bridge_input; |
558 |
bridge_output_p = bridge_output; |
564 |
bridge_output_p = bridge_output; |
559 |
bridge_dn_p = bridge_dummynet; |
565 |
bridge_dn_p = bridge_dummynet; |
560 |
- |
|
|