Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175945890
D7657.id19717.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
846 B
Referenced Files
None
Subscribers
None
D7657.id19717.diff
View Options
Index: sys/dev/hyperv/netvsc/hv_rndis_filter.c
===================================================================
--- sys/dev/hyperv/netvsc/hv_rndis_filter.c
+++ sys/dev/hyperv/netvsc/hv_rndis_filter.c
@@ -1377,8 +1377,14 @@
dev_info->link_state = rndis_dev->link_status;
- if (sc->hn_ndis_ver < NDIS_VERSION_6_30 || nchan == 1)
+ if (sc->hn_ndis_ver < NDIS_VERSION_6_30 || nchan == 1) {
+ /*
+ * Either RSS is not supported, or multiple RX/TX rings
+ * are not requested.
+ */
+ *nchan0 = 1;
return (0);
+ }
/*
* Get RSS capabilities, e.g. # of RX rings, and # of indirect
@@ -1386,9 +1392,9 @@
*/
ret = hn_rndis_get_rsscaps(sc, &rxr_cnt);
if (ret) {
- /* This is benign. */
- ret = 0;
- goto out;
+ /* No RSS; this is benign. */
+ *nchan0 = 1;
+ return (0);
}
if (nchan > rxr_cnt)
nchan = rxr_cnt;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 15, 5:04 PM (20 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40860325
Default Alt Text
D7657.id19717.diff (846 B)
Attached To
Mode
D7657: hyperv/hn: Fix # of channels setting, if RSS is not available.
Attached
Detach File
Event Timeline
Log In to Comment