View | Details | Raw Unified | Return to bug 47773
Collapse All | Expand All

(-)sys/dev/em/if_em.h Fri Jan 31 22:33:58 2003 (+7 lines)
Lines 192-197 Link Here
192
 */
192
 */
193
#define WAIT_FOR_AUTO_NEG_DEFAULT       1
193
#define WAIT_FOR_AUTO_NEG_DEFAULT       1
194
194
195
/*
196
 * This parameter controls the time between calls to the local
197
 * maintainance function, which among other things fetches counters
198
 * from the device and updates the interface statistics.
199
 *             measured in ticks
200
 */
201
#define        MAINT_TIMER_INTERVAL            (hz)
195
202
196
/* Tunables -- End */
203
/* Tunables -- End */
197
204
(-)sys/dev/em/if_em.c Fri Jan 31 22:33:58 2003 (-4 / +5 lines)
Lines 680-686 Link Here
680
                       ifp->if_hwassist = 0;
680
                       ifp->if_hwassist = 0;
681
       }
681
       }
682
682
683
       adapter->timer_handle = timeout(em_local_timer, adapter, 2*hz);
683
       adapter->timer_handle = timeout(em_local_timer, adapter, MAINT_TIMER_INTERVAL);
684
       em_clear_hw_cntrs(&adapter->hw);
684
       em_clear_hw_cntrs(&adapter->hw);
685
#ifdef DEVICE_POLLING
685
#ifdef DEVICE_POLLING
686
       /*
686
       /*
Lines 719-725 Link Here
719
                       em_check_for_link(&adapter->hw);
719
                       em_check_for_link(&adapter->hw);
720
                       em_print_link_status(adapter);
720
                       em_print_link_status(adapter);
721
                       adapter->timer_handle = timeout(em_local_timer,
721
                       adapter->timer_handle = timeout(em_local_timer,
722
                               adapter, 2*hz);
722
                               adapter, MAINT_TIMER_INTERVAL);
723
               }
723
               }
724
       }
724
       }
725
       if (ifp->if_flags & IFF_RUNNING) {
725
       if (ifp->if_flags & IFF_RUNNING) {
Lines 770-776 Link Here
770
                       em_check_for_link(&adapter->hw);
770
                       em_check_for_link(&adapter->hw);
771
                       em_print_link_status(adapter);
771
                       em_print_link_status(adapter);
772
                       adapter->timer_handle = 
772
                       adapter->timer_handle = 
773
                       timeout(em_local_timer, adapter, 2*hz); 
773
                       timeout(em_local_timer, adapter, MAINT_TIMER_INTERVAL); 
774
               }
774
               }
775
775
776
               if (ifp->if_flags & IFF_RUNNING) {
776
               if (ifp->if_flags & IFF_RUNNING) {
Lines 1160-1166 Link Here
1160
       if (em_display_debug_stats && ifp->if_flags & IFF_RUNNING) {
1160
       if (em_display_debug_stats && ifp->if_flags & IFF_RUNNING) {
1161
               em_print_hw_stats(adapter);
1161
               em_print_hw_stats(adapter);
1162
       }
1162
       }
1163
       adapter->timer_handle = timeout(em_local_timer, adapter, 2*hz);
1163
       adapter->timer_handle = timeout(em_local_timer, adapter,
1164
                                       MAINT_TIMER_INTERVAL);
1164
1165
1165
       splx(s);
1166
       splx(s);
1166
       return;
1167
       return;

Return to bug 47773