summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Matthew <jmatthew@cvs.openbsd.org>2024-07-09 16:04:16 +0000
committerJonathan Matthew <jmatthew@cvs.openbsd.org>2024-07-09 16:04:16 +0000
commitdcf8a0195faf2747aed7a920ef2095836d48690b (patch)
treeed15b405c2d17532b57937eab9ec3fb8e57e1a47 /sys
parenta00452b16f9745c50794c893bc378465cab678d9 (diff)
netlock is no longer held for SIOCSIFMEDIA and SIOCGIFMEDIA, so rely on
the kernel lock instead, as done in if_ixl.c r1.84. from Yuichiro NAITO
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_iavf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iavf.c b/sys/dev/pci/if_iavf.c
index dc3ef72aecd..6d7bf200402 100644
--- a/sys/dev/pci/if_iavf.c
+++ b/sys/dev/pci/if_iavf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iavf.c,v 1.13 2024/05/24 06:02:53 jsg Exp $ */
+/* $OpenBSD: if_iavf.c,v 1.14 2024/07/09 16:04:15 jmatthew Exp $ */
/*
* Copyright (c) 2013-2015, Intel Corporation
@@ -954,7 +954,7 @@ iavf_media_status(struct ifnet *ifp, struct ifmediareq *ifm)
{
struct iavf_softc *sc = ifp->if_softc;
- NET_ASSERT_LOCKED();
+ KERNEL_ASSERT_LOCKED();
ifm->ifm_status = sc->sc_media_status;
ifm->ifm_active = sc->sc_media_active;