Page MenuHomeFreeBSD

D4328.diff
No OneTemporary

D4328.diff

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

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)

Event Timeline