Return error when packet is dropped because of link down.
Submitted-by: Boris Misenov <Boris.Misenov@oktetlabs.ru> Sponsored by: Solarflare Communications, Inc.
This commit is contained in:
parent
86ac3134cd
commit
91350e5cd6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=263297
@ -588,7 +588,7 @@ sfxge_if_transmit(struct ifnet *ifp, struct mbuf *m)
|
||||
|
||||
if (!SFXGE_LINK_UP(sc)) {
|
||||
m_freem(m);
|
||||
return (0);
|
||||
return (ENETDOWN);
|
||||
}
|
||||
|
||||
/* Pick the desired transmit queue. */
|
||||
|
Loading…
Reference in New Issue
Block a user