Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F173015331
D35654.id107548.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
405 B
Referenced Files
None
Subscribers
None
D35654.id107548.diff
View Options
Index: sys/dev/etherswitch/e6000sw/e6000sw.c
===================================================================
--- sys/dev/etherswitch/e6000sw/e6000sw.c
+++ sys/dev/etherswitch/e6000sw/e6000sw.c
@@ -543,6 +543,9 @@
E6000SW_LOCK(sc);
}
+ while ((sc->ports_mask & (1 << (sc->num_ports - 1))) == 0)
+ --sc->num_ports;
+
etherswitch_info.es_nports = sc->num_ports;
/* Default to port vlan. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 23, 9:30 PM (11 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39484700
Default Alt Text
D35654.id107548.diff (405 B)
Attached To
Mode
D35654: e6000sw: Correnct number of detected ports
Attached
Detach File
Event Timeline
Log In to Comment