Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147800478
D21868.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
944 B
Referenced Files
None
Subscribers
None
D21868.diff
View Options
Index: head/sys/dev/e1000/if_em.c
===================================================================
--- head/sys/dev/e1000/if_em.c
+++ head/sys/dev/e1000/if_em.c
@@ -3903,6 +3903,7 @@
static void
em_update_stats_counters(struct adapter *adapter)
{
+ u64 prev_xoffrxc = adapter->stats.xoffrxc;
if(adapter->hw.phy.media_type == e1000_media_type_copper ||
(E1000_READ_REG(&adapter->hw, E1000_STATUS) & E1000_STATUS_LU)) {
@@ -3926,7 +3927,8 @@
** For watchdog management we need to know if we have been
** paused during the last interval, so capture that here.
*/
- adapter->shared->isc_pause_frames = adapter->stats.xoffrxc;
+ if (adapter->stats.xoffrxc != prev_xoffrxc)
+ adapter->shared->isc_pause_frames = 1;
adapter->stats.xofftxc += E1000_READ_REG(&adapter->hw, E1000_XOFFTXC);
adapter->stats.fcruc += E1000_READ_REG(&adapter->hw, E1000_FCRUC);
adapter->stats.prc64 += E1000_READ_REG(&adapter->hw, E1000_PRC64);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 14, 6:33 PM (1 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29679828
Default Alt Text
D21868.diff (944 B)
Attached To
Mode
D21868: e1000: correctly set isc_pause_frames only when XOFF increases
Attached
Detach File
Event Timeline
Log In to Comment