From: dlg Date: Tue, 18 Jan 2022 10:54:05 +0000 (+0000) Subject: return EIO, not ENXIO, when the interface underneath ifq_deq_sleep dies. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ba7d956b15f0f736629f3eb111ca861c4acfac81;p=openbsd 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. --- 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 @@ -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; } }