Author: arybchik
Date: Wed Mar 25 09:40:48 2015
New Revision: 280496
URL: https://svnweb.freebsd.org/changeset/base/280496

Log:
  MFC: 263297
  
  Return error when packet is dropped because of link down.
  
  Submitted by:   Boris Misenov <Boris.Misenov at oktetlabs.ru>
  Sponsored by:   Solarflare Communications, Inc.

Modified:
  stable/10/sys/dev/sfxge/sfxge_tx.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/sfxge/sfxge_tx.c
==============================================================================
--- stable/10/sys/dev/sfxge/sfxge_tx.c  Wed Mar 25 08:55:34 2015        
(r280495)
+++ stable/10/sys/dev/sfxge/sfxge_tx.c  Wed Mar 25 09:40:48 2015        
(r280496)
@@ -604,7 +604,7 @@ sfxge_if_transmit(struct ifnet *ifp, str
 
        if (!SFXGE_LINK_UP(sc)) {
                m_freem(m);
-               return (0);
+               return (ENETDOWN);
        }
 
        /* Pick the desired transmit queue. */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "[email protected]"

Reply via email to