sfxge: return error when packet is dropped because of link down

Submitted-by:   Boris Misenov <[email protected]>
Sponsored by:   Solarflare Communications, Inc.

diff -r d292c9f51d36 -r 53935db50f8a src/driver/freebsd/sfxge_tx.c
--- a/head/sys/dev/sfxge/sfxge_tx.c    Thu Mar 06 13:38:55 2014 +0000
+++ b/head/sys/dev/sfxge/sfxge_tx.c    Mon Mar 10 11:37:12 2014 +0400
@@ -589,7 +589,7 @@

     if (!SFXGE_LINK_UP(sc)) {
         m_freem(m);
-        return (0);
+        return (ENETDOWN);
     }

     /* Pick the desired transmit queue. */

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[email protected]"

Reply via email to