mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
If lagg(4) can't forward a packet due to underlying port problems,
return much more meaningful ENETDOWN to the stack, instead of EBUSY.
This commit is contained in:
parent
c3cbaac942
commit
1d9797f128
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245741
@ -789,7 +789,7 @@ lagg_port_output(struct ifnet *ifp, struct mbuf *m,
|
||||
|
||||
/* drop any other frames */
|
||||
m_freem(m);
|
||||
return (EBUSY);
|
||||
return (ENETDOWN);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -1862,7 +1862,7 @@ lagg_lacp_start(struct lagg_softc *sc, struct mbuf *m)
|
||||
lp = lacp_select_tx_port(sc, m);
|
||||
if (lp == NULL) {
|
||||
m_freem(m);
|
||||
return (EBUSY);
|
||||
return (ENETDOWN);
|
||||
}
|
||||
|
||||
/* Send mbuf */
|
||||
|
Loading…
Reference in New Issue
Block a user