1334 *
1335 * It's possible to force use of STE for ALL packets:
1336 * disable RDE but enable STE. This may be useful for
1337 * non-transparent bridges, when it is not desired to run
1338 * the RDE algorithms.
1339 */
1340 ((gld_mac_pvt_t *)macinfo->gldm_mac_pvt)->rde_str_indicator_ste =
1341 ddi_getprop(DDI_DEV_T_NONE, macinfo->gldm_devinfo, 0,
1342 "gld_rde_str_indicator_ste",
1343 ((gld_mac_pvt_t *)macinfo->gldm_mac_pvt)->rde_enabled);
1344
1345 /* Default 10 second route timeout on lack of activity */
1346 {
1347 int t = ddi_getprop(DDI_DEV_T_NONE, macinfo->gldm_devinfo, 0,
1348 "gld_rde_timeout", 10);
1349 if (t < 1)
1350 t = 1; /* Let's be reasonable */
1351 if (t > 600)
1352 t = 600; /* Let's be reasonable */
1353 /* We're using ticks (lbolts) for our timeout -- convert from seconds */
1354 t = drv_usectohz(1000000 * t);
1355 ((gld_mac_pvt_t *)macinfo->gldm_mac_pvt)->rde_timeout = t;
1356 }
1357
1358 kstat_named_init(&sp->glds_dot5_line_error,
1359 "line_errors", KSTAT_DATA_UINT32);
1360 kstat_named_init(&sp->glds_dot5_burst_error,
1361 "burst_errors", KSTAT_DATA_UINT32);
1362 kstat_named_init(&sp->glds_dot5_signal_loss,
1363 "signal_losses", KSTAT_DATA_UINT32);
1364
1365 /*
1366 * only initialize the new statistics if the driver
1367 * knows about them.
1368 */
1369 if (macinfo->gldm_driver_version != GLD_VERSION_200)
1370 return;
1371
1372 kstat_named_init(&sp->glds_dot5_ace_error,
1373 "ace_errors", KSTAT_DATA_UINT32);
1374 kstat_named_init(&sp->glds_dot5_internal_error,
|
1334 *
1335 * It's possible to force use of STE for ALL packets:
1336 * disable RDE but enable STE. This may be useful for
1337 * non-transparent bridges, when it is not desired to run
1338 * the RDE algorithms.
1339 */
1340 ((gld_mac_pvt_t *)macinfo->gldm_mac_pvt)->rde_str_indicator_ste =
1341 ddi_getprop(DDI_DEV_T_NONE, macinfo->gldm_devinfo, 0,
1342 "gld_rde_str_indicator_ste",
1343 ((gld_mac_pvt_t *)macinfo->gldm_mac_pvt)->rde_enabled);
1344
1345 /* Default 10 second route timeout on lack of activity */
1346 {
1347 int t = ddi_getprop(DDI_DEV_T_NONE, macinfo->gldm_devinfo, 0,
1348 "gld_rde_timeout", 10);
1349 if (t < 1)
1350 t = 1; /* Let's be reasonable */
1351 if (t > 600)
1352 t = 600; /* Let's be reasonable */
1353 /* We're using ticks (lbolts) for our timeout -- convert from seconds */
1354 t = drv_sectohz(t);
1355 ((gld_mac_pvt_t *)macinfo->gldm_mac_pvt)->rde_timeout = t;
1356 }
1357
1358 kstat_named_init(&sp->glds_dot5_line_error,
1359 "line_errors", KSTAT_DATA_UINT32);
1360 kstat_named_init(&sp->glds_dot5_burst_error,
1361 "burst_errors", KSTAT_DATA_UINT32);
1362 kstat_named_init(&sp->glds_dot5_signal_loss,
1363 "signal_losses", KSTAT_DATA_UINT32);
1364
1365 /*
1366 * only initialize the new statistics if the driver
1367 * knows about them.
1368 */
1369 if (macinfo->gldm_driver_version != GLD_VERSION_200)
1370 return;
1371
1372 kstat_named_init(&sp->glds_dot5_ace_error,
1373 "ace_errors", KSTAT_DATA_UINT32);
1374 kstat_named_init(&sp->glds_dot5_internal_error,
|