Date: Tue, 18 Mar 2014 13:56:22 +0400 From: Andrew Rybchenko <Andrew.Rybchenko@oktetlabs.ru> To: net@FreeBSD.org Subject: [PATCH 3/6] sfxge: return error when packet is dropped because of link down Message-ID: <53281846.2070308@oktetlabs.ru>
next in thread | raw e-mail | index | archive | help
sfxge: return error when packet is dropped because of link down Submitted-by: Boris Misenov <Boris.Misenov@oktetlabs.ru> 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. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53281846.2070308>