Author: delphij
Date: Mon Jul 1 22:05:43 2013
New Revision: 252489
URL: http://svnweb.freebsd.org/changeset/base/252489
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/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 Mon Jul 1 22:02:39 2013 (r252488)
+++ stable/9/sys/net/if_lagg.c Mon Jul 1 22:05:43 2013 (r252489)
@@ -1597,7 +1597,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 */
@@ -1645,7 +1645,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 */
@@ -1774,7 +1774,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 */
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"