svn commit: r263297 - head/sys/dev/sfxge
Gleb Smirnoff
glebius at FreeBSD.org
Tue Mar 18 12:50:22 UTC 2014
Author: glebius
Date: Tue Mar 18 12:50:22 2014
New Revision: 263297
URL: http://svnweb.freebsd.org/changeset/base/263297
Log:
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:
head/sys/dev/sfxge/sfxge_tx.c
Modified: head/sys/dev/sfxge/sfxge_tx.c
==============================================================================
--- head/sys/dev/sfxge/sfxge_tx.c Tue Mar 18 12:19:39 2014 (r263296)
+++ head/sys/dev/sfxge/sfxge_tx.c Tue Mar 18 12:50:22 2014 (r263297)
@@ -588,7 +588,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. */
More information about the svn-src-all
mailing list