Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176375095
D60824.id190153.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
599 B
Referenced Files
None
Subscribers
None
D60824.id190153.diff
View Options
diff --git a/sys/dev/iwm/if_iwm.c b/sys/dev/iwm/if_iwm.c
--- a/sys/dev/iwm/if_iwm.c
+++ b/sys/dev/iwm/if_iwm.c
@@ -6083,6 +6083,8 @@
}
hw = le16toh(sc->rxq.stat->closed_rb_num) & 0xfff;
+ /* Mask the returned value to the hardware ring size */
+ hw &= (count - 1);
/*
* Process responses
diff --git a/sys/dev/iwm/if_iwmvar.h b/sys/dev/iwm/if_iwmvar.h
--- a/sys/dev/iwm/if_iwmvar.h
+++ b/sys/dev/iwm/if_iwmvar.h
@@ -293,6 +293,7 @@
int cur;
};
+/* Note: these are used as a mask; must be a power of 2 */
#define IWM_RX_LEGACY_RING_COUNT 256
#define IWM_RX_MQ_RING_COUNT 512
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 19, 8:45 AM (36 m, 30 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41021162
Default Alt Text
D60824.id190153.diff (599 B)
Attached To
Mode
D60824: iwm: mask closed_rb_num to the RX ring size
Attached
Detach File
Event Timeline
Log In to Comment