소스 검색

Exhaustion of transmit buffers should not be a reportable error.

whitequark 7 년 전
부모
커밋
017210ea28
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/iface/ethernet.rs

+ 1 - 0
src/iface/ethernet.rs

@@ -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);