Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Mar 2014 12:50:22 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r263297 - head/sys/dev/sfxge
Message-ID:  <201403181250.s2ICoMJe040570@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403181250.s2ICoMJe040570>