From 1d9797f12857166ae936e37c3f5c3659ddc71314 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Mon, 21 Jan 2013 08:59:31 +0000 Subject: [PATCH] If lagg(4) can't forward a packet due to underlying port problems, return much more meaningful ENETDOWN to the stack, instead of EBUSY. --- sys/net/if_lagg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c index 0428cbe83ed5..3634d0b498ae 100644 --- a/sys/net/if_lagg.c +++ b/sys/net/if_lagg.c @@ -789,7 +789,7 @@ lagg_port_output(struct ifnet *ifp, struct mbuf *m, /* drop any other frames */ m_freem(m); - return (EBUSY); + return (ENETDOWN); } static void @@ -1862,7 +1862,7 @@ lagg_lacp_start(struct lagg_softc *sc, struct mbuf *m) lp = lacp_select_tx_port(sc, m); if (lp == NULL) { m_freem(m); - return (EBUSY); + return (ENETDOWN); } /* Send mbuf */