aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ixl/if_ixl.c
diff options
context:
space:
mode:
authorSteven Hartland <smh@FreeBSD.org>2016-01-29 21:06:59 +0000
committerSteven Hartland <smh@FreeBSD.org>2016-01-29 21:06:59 +0000
commit4088e74393223fece906b464d66ceca148da5ac7 (patch)
treede9838e689a645a3be31f38a71652e66f86abdfd /sys/dev/ixl/if_ixl.c
parent4111e0a100905bfca78d613daa746ba1975947b8 (diff)
downloadsrc-4088e74393223fece906b464d66ceca148da5ac7.tar.gz
src-4088e74393223fece906b464d66ceca148da5ac7.zip
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
Notes
Notes: svn path=/head/; revision=295051
Diffstat (limited to 'sys/dev/ixl/if_ixl.c')
-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 505d4b4cbb12..d5ab42fb6025 100644
--- a/sys/dev/ixl/if_ixl.c
+++ b/sys/dev/ixl/if_ixl.c
@@ -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 */