View | Details | Raw Unified | Return to bug 217606 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/net/if_bridge.c (-3 / +1 lines)
Lines 553-559 bridge_modevent(module_t mod, int type, void *data) Link Here
553
	case MOD_LOAD:
553
	case MOD_LOAD:
554
		bridge_rtnode_zone = uma_zcreate("bridge_rtnode",
554
		bridge_rtnode_zone = uma_zcreate("bridge_rtnode",
555
		    sizeof(struct bridge_rtnode), NULL, NULL, NULL, NULL,
555
		    sizeof(struct bridge_rtnode), NULL, NULL, NULL, NULL,
556
		    UMA_ALIGN_PTR, 0);
556
		    UMA_ALIGN_PTR|UMA_ZONE_NOFREE, 0);
557
		bridge_input_p = bridge_input;
557
		bridge_input_p = bridge_input;
558
		bridge_output_p = bridge_output;
558
		bridge_output_p = bridge_output;
559
		bridge_dn_p = bridge_dummynet;
559
		bridge_dn_p = bridge_dummynet;
560
- 
561
uma zone
560
uma zone
562
--
563
sys/net/if_bridge.c | 6 ++++++
561
sys/net/if_bridge.c | 6 ++++++
564
1 file changed, 6 insertions(+)
562
1 file changed, 6 insertions(+)
(-)b/sys/net/if_bridge.c (-1 / +6 lines)
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
- 

Return to bug 217606