FreeBSD Bugzilla – Attachment 28387 Details for
Bug 47773
"em" network device does not update packet counters smoothly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.03 KB, created by
Paul Vixie
on 2003-01-31 23:10:16 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Paul Vixie
Created:
2003-01-31 23:10:16 UTC
Size:
2.03 KB
patch
obsolete
>--- sys/dev/em/if_em.h.orig Fri Jan 31 22:31:33 2003 >+++ sys/dev/em/if_em.h Fri Jan 31 22:33:58 2003 >@@ -192,6 +192,13 @@ > */ > #define WAIT_FOR_AUTO_NEG_DEFAULT 1 > >+/* >+ * This parameter controls the time between calls to the local >+ * maintainance function, which among other things fetches counters >+ * from the device and updates the interface statistics. >+ * measured in ticks >+ */ >+#define MAINT_TIMER_INTERVAL (hz) > > /* Tunables -- End */ > >--- sys/dev/em/if_em.c.orig Fri Jan 31 22:19:18 2003 >+++ sys/dev/em/if_em.c Fri Jan 31 22:33:58 2003 >@@ -680,7 +680,7 @@ > ifp->if_hwassist = 0; > } > >- adapter->timer_handle = timeout(em_local_timer, adapter, 2*hz); >+ adapter->timer_handle = timeout(em_local_timer, adapter, MAINT_TIMER_INTERVAL); > em_clear_hw_cntrs(&adapter->hw); > #ifdef DEVICE_POLLING > /* >@@ -719,7 +719,7 @@ > em_check_for_link(&adapter->hw); > em_print_link_status(adapter); > adapter->timer_handle = timeout(em_local_timer, >- adapter, 2*hz); >+ adapter, MAINT_TIMER_INTERVAL); > } > } > if (ifp->if_flags & IFF_RUNNING) { >@@ -770,7 +770,7 @@ > em_check_for_link(&adapter->hw); > em_print_link_status(adapter); > adapter->timer_handle = >- timeout(em_local_timer, adapter, 2*hz); >+ timeout(em_local_timer, adapter, MAINT_TIMER_INTERVAL); > } > > if (ifp->if_flags & IFF_RUNNING) { >@@ -1160,7 +1160,8 @@ > if (em_display_debug_stats && ifp->if_flags & IFF_RUNNING) { > em_print_hw_stats(adapter); > } >- adapter->timer_handle = timeout(em_local_timer, adapter, 2*hz); >+ adapter->timer_handle = timeout(em_local_timer, adapter, >+ MAINT_TIMER_INTERVAL); > > splx(s); > return;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 47773
: 28387