Author: delphij
Date: Mon Jul  1 22:07:01 2013
New Revision: 252490
URL: http://svnweb.freebsd.org/changeset/base/252490

Log:
  MFC r251859:
  
  Return ENETDOWN instead of ENOENT when all lagg(4) links are
  inactive when upper layer tries to transmit packet.  This
  gives better feedback and meaningful errors for applications.
  
  Reviewed by:  thompsa

Modified:
  stable/8/sys/net/if_lagg.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/net/   (props changed)

Modified: stable/8/sys/net/if_lagg.c
==============================================================================
--- stable/8/sys/net/if_lagg.c  Mon Jul  1 22:05:43 2013        (r252489)
+++ stable/8/sys/net/if_lagg.c  Mon Jul  1 22:07:01 2013        (r252490)
@@ -1572,7 +1572,7 @@ lagg_rr_start(struct lagg_softc *sc, str
         */
        if ((lp = lagg_link_active(sc, lp)) == NULL) {
                m_freem(m);
-               return (ENOENT);
+               return (ENETDOWN);
        }
 
        /* Send mbuf */
@@ -1620,7 +1620,7 @@ lagg_fail_start(struct lagg_softc *sc, s
        /* Use the master port if active or the next available port */
        if ((lp = lagg_link_active(sc, sc->sc_primary)) == NULL) {
                m_freem(m);
-               return (ENOENT);
+               return (ENETDOWN);
        }
 
        /* Send mbuf */
@@ -1749,7 +1749,7 @@ lagg_lb_start(struct lagg_softc *sc, str
         */
        if ((lp = lagg_link_active(sc, lp)) == NULL) {
                m_freem(m);
-               return (ENOENT);
+               return (ENETDOWN);
        }
 
        /* Send mbuf */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to