Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Sep 2013 19:43:29 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r255710 - stable/9/sys/net
Message-ID:  <201309191943.r8JJhTNG083080@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Thu Sep 19 19:43:29 2013
New Revision: 255710
URL: http://svnweb.freebsd.org/changeset/base/255710

Log:
  Merge from r245741 from head:
  
    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:
  stable/9/sys/net/if_lagg.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/net/   (props changed)

Modified: stable/9/sys/net/if_lagg.c
==============================================================================
--- stable/9/sys/net/if_lagg.c	Thu Sep 19 18:56:00 2013	(r255709)
+++ stable/9/sys/net/if_lagg.c	Thu Sep 19 19:43:29 2013	(r255710)
@@ -820,7 +820,7 @@ lagg_port_output(struct ifnet *ifp, stru
 
 	/* drop any other frames */
 	m_freem(m);
-	return (EBUSY);
+	return (ENETDOWN);
 }
 
 static void
@@ -1893,7 +1893,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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309191943.r8JJhTNG083080>