artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85846d3
)
netlock is no longer held for SIOCSIFMEDIA and SIOCGIFMEDIA, so rely on
author
jmatthew
<jmatthew@openbsd.org>
Tue, 9 Jul 2024 16:04:15 +0000
(16:04 +0000)
committer
jmatthew
<jmatthew@openbsd.org>
Tue, 9 Jul 2024 16:04:15 +0000
(16:04 +0000)
the kernel lock instead, as done in if_ixl.c r1.84.
from Yuichiro NAITO
sys/dev/pci/if_iavf.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/if_iavf.c
b/sys/dev/pci/if_iavf.c
index
dc3ef72
..
6d7bf20
100644
(file)
--- a/
sys/dev/pci/if_iavf.c
+++ b/
sys/dev/pci/if_iavf.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: if_iavf.c,v 1.1
3 2024/05/24 06:02:53 jsg Exp $
*/
+/* $OpenBSD: if_iavf.c,v 1.1
4 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;