summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorjfv <jfv@FreeBSD.org>2010-08-06 20:55:49 +0000
committerjfv <jfv@FreeBSD.org>2010-08-06 20:55:49 +0000
commit6012099d55026c6cbd29a14d153654da62664943 (patch)
tree008be797cf66c074353538c45fe21657df278811 /sys/dev
parent0d945e4c125762f628055ca0f04631e6257d834b (diff)
downloadFreeBSD-src-6012099d55026c6cbd29a14d153654da62664943.zip
FreeBSD-src-6012099d55026c6cbd29a14d153654da62664943.tar.gz
Put the early setting of the MAC type back, its
removal resulted in broken code in MSIX setup.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/e1000/if_igb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/e1000/if_igb.c b/sys/dev/e1000/if_igb.c
index e6f6bdb..c908517 100644
--- a/sys/dev/e1000/if_igb.c
+++ b/sys/dev/e1000/if_igb.c
@@ -2070,6 +2070,9 @@ igb_identify_hardware(struct adapter *adapter)
pci_read_config(dev, PCIR_SUBVEND_0, 2);
adapter->hw.subsystem_device_id =
pci_read_config(dev, PCIR_SUBDEV_0, 2);
+
+ /* Set MAC type early for PCI setup */
+ e1000_set_mac_type(&adapter->hw);
}
static int
OpenPOWER on IntegriCloud