Exhaustion of transmit buffers should not be a reportable error.

This commit is contained in:
whitequark 2017-08-31 16:27:50 +00:00
parent 6da3e5f217
commit b585fbd368
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ impl<'a, 'b, 'c, DeviceT: Device + 'a> Interface<'a, 'b, 'c, DeviceT> {
&mut Socket::__Nonexhaustive => unreachable!()
};
match (device_result, socket_result) {
(Err(Error::Exhausted), Ok(())) => break, // nowhere to transmit
(Ok(()), Err(Error::Exhausted)) => (), // nothing to transmit
(Err(err), _) | (_, Err(err)) => {
net_debug!("cannot dispatch egress packet: {}", err);