summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2022-01-18 10:54:06 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2022-01-18 10:54:06 +0000
commite2c18389ad572a97d17e4da054ae4bd45189dec6 (patch)
tree182d4a16a2c2cf9967704f67b628294b3eaba0e4
parente44c9aff7c72421b0aa31d01b1af7dccf60c5692 (diff)
return EIO, not ENXIO, when the interface underneath ifq_deq_sleep dies.
this is consistent with other drivers when they report their underlying device being detached.
-rw-r--r--sys/net/ifq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/ifq.c b/sys/net/ifq.c
index d61e5934624..cf3685a3811 100644
--- a/sys/net/ifq.c
+++ b/sys/net/ifq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifq.c,v 1.44 2021/07/09 01:22:05 dlg Exp $ */
+/* $OpenBSD: ifq.c,v 1.45 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 = ENXIO;
+ error = EIO;
break;
}
}