Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/aggr/aggr_lacp.c
          +++ new/usr/src/uts/common/io/aggr/aggr_lacp.c
↓ open down ↓ 438 lines elided ↑ open up ↑
 439  439  static void
 440  440  start_periodic_timer(aggr_port_t *portp)
 441  441  {
 442  442          aggr_lacp_port_t *pl = &portp->lp_lacp;
 443  443  
 444  444          ASSERT(MAC_PERIM_HELD(portp->lp_grp->lg_mh));
 445  445  
 446  446          mutex_enter(&pl->lacp_timer_lock);
 447  447          if (pl->periodic_timer.id == 0) {
 448  448                  pl->periodic_timer.id = timeout(periodic_timer_pop, portp,
 449      -                    drv_usectohz(1000000 * portp->lp_lacp.periodic_timer.val));
      449 +                    drv_sectohz(portp->lp_lacp.periodic_timer.val));
 450  450          }
 451  451          mutex_exit(&pl->lacp_timer_lock);
 452  452  }
 453  453  
 454  454  static void
 455  455  stop_periodic_timer(aggr_port_t *portp)
 456  456  {
 457  457          aggr_lacp_port_t *pl = &portp->lp_lacp;
 458  458          timeout_id_t id;
 459  459  
↓ open down ↓ 1050 lines elided ↑ open up ↑
1510 1510  start_wait_while_timer(aggr_port_t *portp)
1511 1511  {
1512 1512          aggr_lacp_port_t *pl = &portp->lp_lacp;
1513 1513  
1514 1514          ASSERT(MAC_PERIM_HELD(portp->lp_grp->lg_mh));
1515 1515  
1516 1516          mutex_enter(&pl->lacp_timer_lock);
1517 1517          if (pl->wait_while_timer.id == 0) {
1518 1518                  pl->wait_while_timer.id =
1519 1519                      timeout(wait_while_timer_pop, portp,
1520      -                    drv_usectohz(1000000 *
1521      -                    portp->lp_lacp.wait_while_timer.val));
     1520 +                    drv_sectohz(portp->lp_lacp.wait_while_timer.val));
1522 1521          }
1523 1522          mutex_exit(&pl->lacp_timer_lock);
1524 1523  }
1525 1524  
1526 1525  
1527 1526  static void
1528 1527  stop_wait_while_timer(aggr_port_t *portp)
1529 1528  {
1530 1529          aggr_lacp_port_t *pl = &portp->lp_lacp;
1531 1530          timeout_id_t id;
↓ open down ↓ 845 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX