Skip to content

Commit 017210e

Browse files
committedAug 31, 2017
Exhaustion of transmit buffers should not be a reportable error.
1 parent fac42e9 commit 017210e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

Diff for: ‎src/iface/ethernet.rs

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

0 commit comments

Comments
 (0)