Skip to content

Commit

Permalink
Set eth MTU to 1514
Browse files Browse the repository at this point in the history
  • Loading branch information
jonlamb-gh committed Apr 13, 2023
1 parent 49b353d commit 7e370a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/net/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ pub struct Eth<'buf> {
}

impl<'buf> Eth<'buf> {
// TODO - should be 1514 ? query the driver
pub const MTU: usize = 1500;
pub const MTU: usize = 1514;

pub fn new(drv: Drv, rx_buffer: &'buf mut [u8], tx_buffer: &'buf mut [u8]) -> Self {
debug!(
Expand Down

0 comments on commit 7e370a8

Please sign in to comment.