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 */
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"

Reply via email to