Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route/route_ctl.c
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | |||||
/* Per-vnet multipath routing configuration */ | /* Per-vnet multipath routing configuration */ | ||||
SYSCTL_DECL(_net_route); | SYSCTL_DECL(_net_route); | ||||
#define V_rib_route_multipath VNET(rib_route_multipath) | #define V_rib_route_multipath VNET(rib_route_multipath) | ||||
#ifdef ROUTE_MPATH | #ifdef ROUTE_MPATH | ||||
#define _MP_FLAGS CTLFLAG_RW | #define _MP_FLAGS CTLFLAG_RW | ||||
#else | #else | ||||
#define _MP_FLAGS CTLFLAG_RD | #define _MP_FLAGS CTLFLAG_RD | ||||
#endif | #endif | ||||
VNET_DEFINE(u_int, rib_route_multipath) = 0; | VNET_DEFINE(u_int, rib_route_multipath) = 1; | ||||
SYSCTL_UINT(_net_route, OID_AUTO, multipath, _MP_FLAGS | CTLFLAG_VNET, | SYSCTL_UINT(_net_route, OID_AUTO, multipath, _MP_FLAGS | CTLFLAG_VNET, | ||||
&VNET_NAME(rib_route_multipath), 0, "Enable route multipath"); | &VNET_NAME(rib_route_multipath), 0, "Enable route multipath"); | ||||
#undef _MP_FLAGS | #undef _MP_FLAGS | ||||
/* Routing table UMA zone */ | /* Routing table UMA zone */ | ||||
VNET_DEFINE_STATIC(uma_zone_t, rtzone); | VNET_DEFINE_STATIC(uma_zone_t, rtzone); | ||||
#define V_rtzone VNET(rtzone) | #define V_rtzone VNET(rtzone) | ||||
▲ Show 20 Lines • Show All 1,391 Lines • Show Last 20 Lines |