Skip to content

Commit

Permalink
better softnpu management command reliability (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcgoodfellow authored Dec 1, 2023
1 parent 7157e8d commit da5ac5a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/propolis/src/hw/virtio/softnpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ use slog::{error, info, warn, Logger};

// Transit jumbo frames
const MTU: usize = 9216;

const SOFTNPU_CPU_AUX_PORT: u16 = 1000;

pub const MANAGEMENT_MESSAGE_PREAMBLE: u8 = 0b11100101;
Expand Down Expand Up @@ -810,10 +809,10 @@ impl ManagementMessageReader {
if p + 1 < buf.len() {
&buf[p + 1..]
} else {
&buf
continue;
}
}
None => &buf,
None => continue,
};
match serde_json::from_slice(&msgbuf) {
Ok(msg) => return msg,
Expand Down

0 comments on commit da5ac5a

Please sign in to comment.