summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixl
diff options
context:
space:
mode:
authorsmh <smh@FreeBSD.org>2016-01-31 02:23:30 +0000
committersmh <smh@FreeBSD.org>2016-01-31 02:23:30 +0000
commit791bdab10f3cfbed0b6a62d89d9168fb66d3eafe (patch)
treecd61589ff1595a583c329b50d0e0631e6e51504b /sys/dev/ixl
parent697fd794a65000254dcbe0e42b82d4266248e966 (diff)
downloadFreeBSD-src-791bdab10f3cfbed0b6a62d89d9168fb66d3eafe.zip
FreeBSD-src-791bdab10f3cfbed0b6a62d89d9168fb66d3eafe.tar.gz
MFC r295051:
Fix phy interrupts setup for ixl Approved by: re (gjb) Sponsored by: Multiplay
Diffstat (limited to 'sys/dev/ixl')
-rw-r--r--sys/dev/ixl/if_ixl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ixl/if_ixl.c b/sys/dev/ixl/if_ixl.c
index 14d0aeb..b89c64c 100644
--- a/sys/dev/ixl/if_ixl.c
+++ b/sys/dev/ixl/if_ixl.c
@@ -673,9 +673,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 */
OpenPOWER on IntegriCloud