artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a24b51
)
return EIO, not ENXIO, when the interface underneath ifq_deq_sleep dies.
author
dlg
<dlg@openbsd.org>
Tue, 18 Jan 2022 10:54:05 +0000
(10:54 +0000)
committer
dlg
<dlg@openbsd.org>
Tue, 18 Jan 2022 10:54:05 +0000
(10:54 +0000)
this is consistent with other drivers when they report their
underlying device being detached.
sys/net/ifq.c
patch
|
blob
|
history
diff --git
a/sys/net/ifq.c
b/sys/net/ifq.c
index
d61e593
..
cf3685a
100644
(file)
--- a/
sys/net/ifq.c
+++ b/
sys/net/ifq.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ifq.c,v 1.4
4 2021/07/09 01:22
:05 dlg Exp $ */
+/* $OpenBSD: ifq.c,v 1.4
5 2022/01/18 10:54
:05 dlg Exp $ */
/*
* Copyright (c) 2015 David Gwynne <dlg@openbsd.org>
@@
-484,7
+484,7
@@
ifq_deq_sleep(struct ifqueue *ifq, struct mbuf **mp, int nbio, int priority,
if (error != 0)
break;
if (!(*alive)) {
- error = E
NX
IO;
+ error = EIO;
break;
}
}