Reset the EIAC register to include the LINK status bit and restore

link up/down notifications.

Submitted by:	Franco Fichtner <franco@opnsense.org>
This commit is contained in:
Sean Bruno 2017-01-12 14:28:32 +00:00
parent 8bc3dfc424
commit 0aa7d3ff9e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311979

View File

@ -3117,7 +3117,7 @@ em_if_enable_intr(if_ctx_t ctx)
u32 ims_mask = IMS_ENABLE_MASK;
if (hw->mac.type == e1000_82574) {
E1000_WRITE_REG(hw, EM_EIAC, adapter->ims);
E1000_WRITE_REG(hw, EM_EIAC, EM_MSIX_MASK);
ims_mask |= adapter->ims;
} if (adapter->intr_type == IFLIB_INTR_MSIX && hw->mac.type >= igb_mac_min) {
u32 mask = (adapter->que_mask | adapter->link_mask);