svn commit: r245741 - head/sys/net

Gleb Smirnoff glebius at FreeBSD.org
Mon Jan 21 08:59:32 UTC 2013


Author: glebius
Date: Mon Jan 21 08:59:31 2013
New Revision: 245741
URL: http://svnweb.freebsd.org/changeset/base/245741

Log:
  If lagg(4) can't forward a packet due to underlying port problems,
  return much more meaningful ENETDOWN to the stack, instead of EBUSY.

Modified:
  head/sys/net/if_lagg.c

Modified: head/sys/net/if_lagg.c
==============================================================================
--- head/sys/net/if_lagg.c	Mon Jan 21 08:12:59 2013	(r245740)
+++ head/sys/net/if_lagg.c	Mon Jan 21 08:59:31 2013	(r245741)
@@ -789,7 +789,7 @@ lagg_port_output(struct ifnet *ifp, stru
 
 	/* drop any other frames */
 	m_freem(m);
-	return (EBUSY);
+	return (ENETDOWN);
 }
 
 static void
@@ -1862,7 +1862,7 @@ lagg_lacp_start(struct lagg_softc *sc, s
 	lp = lacp_select_tx_port(sc, m);
 	if (lp == NULL) {
 		m_freem(m);
-		return (EBUSY);
+		return (ENETDOWN);
 	}
 
 	/* Send mbuf */


More information about the svn-src-all mailing list