Fix phy interrupts setup for ixl

Fix the inverted set of interrupts being used as the mask for ixl.

Without this ixl devices fail to detect link state changes.

Reviewed by:	erj, sbruno
MFC after:	2 days
Sponsored by:	Multiplay
This commit is contained in:
Steven Hartland 2016-01-29 21:06:59 +00:00
parent 4111e0a100
commit 4088e74393
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295051

View File

@ -674,9 +674,9 @@ ixl_attach(device_t dev)
}
/* Limit phy interrupts to link and modules failure */
error = i40e_aq_set_phy_int_mask(hw,
I40E_AQ_EVENT_LINK_UPDOWN | I40E_AQ_EVENT_MODULE_QUAL_FAIL, NULL);
if (error)
error = i40e_aq_set_phy_int_mask(hw, ~(I40E_AQ_EVENT_LINK_UPDOWN |
I40E_AQ_EVENT_MODULE_QUAL_FAIL), NULL);
if (error)
device_printf(dev, "set phy mask failed: %d\n", error);
/* Get the bus configuration and set the shared code */