Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140019673
D4328.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D4328.diff
View Options
Index: head/sys/dev/sfxge/common/hunt_nic.c
===================================================================
--- head/sys/dev/sfxge/common/hunt_nic.c
+++ head/sys/dev/sfxge/common/hunt_nic.c
@@ -1071,18 +1071,18 @@
/* MAC address for this function */
if (EFX_PCI_FUNCTION_IS_PF(encp)) {
rc = efx_mcdi_get_mac_address_pf(enp, mac_addr);
+ if ((rc == 0) && (mac_addr[0] & 0x02)) {
+ /*
+ * If the static config does not include a global MAC
+ * address pool then the board may return a locally
+ * administered MAC address (this should only happen on
+ * incorrectly programmed boards).
+ */
+ rc = EINVAL;
+ }
} else {
rc = efx_mcdi_get_mac_address_vf(enp, mac_addr);
}
- if ((rc == 0) && (mac_addr[0] & 0x02)) {
- /*
- * If the static config does not include a global MAC address
- * pool then the board may return a locally administered MAC
- * address (this should only happen on incorrectly programmed
- * boards).
- */
- rc = EINVAL;
- }
if (rc != 0)
goto fail4;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 20, 3:18 AM (6 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27091258
Default Alt Text
D4328.diff (1 KB)
Attached To
Mode
D4328: sfxge: allow VFs to have locally administered MAC addresses
Attached
Detach File
Event Timeline
Log In to Comment