diff --git a/examples/ping-tun-offload-tokio.rs b/examples/ping-tun-offload-tokio.rs index 1967a70..1c5403b 100644 --- a/examples/ping-tun-offload-tokio.rs +++ b/examples/ping-tun-offload-tokio.rs @@ -32,6 +32,7 @@ async fn main_entry(mut quit: Receiver<()>) -> Result<(), BoxError> { config .address_with_prefix((10, 0, 0, 9), 24) .platform_config(|config| { + // After enabling the offload, you need to use recv_multiple and send_multiple to read and write data. config.offload(true); }) .mtu(1500) diff --git a/examples/read-offload.rs b/examples/read-offload.rs index 49a2d91..dce8c97 100644 --- a/examples/read-offload.rs +++ b/examples/read-offload.rs @@ -35,6 +35,7 @@ fn main_entry(quit: Receiver<()>) -> Result<(), BoxError> { config .address_with_prefix("10.0.0.2", 24u8) .platform_config(|config| { + // After enabling the offload, you need to use recv_multiple and send_multiple to read and write data. config.offload(true); }) .mtu(1500) diff --git a/src/platform/linux/device.rs b/src/platform/linux/device.rs index 42047b0..9347524 100644 --- a/src/platform/linux/device.rs +++ b/src/platform/linux/device.rs @@ -181,7 +181,7 @@ impl Device { } /// send multiple fragmented data packets. /// GROTable can be reused, as it is used to assist in data merging. - /// Offset is the starting position of the data. Need to meet offset>10. + /// Offset is the starting position of the data. Need to meet offset>=10. pub fn send_multiple( &self, gro_table: &mut GROTable,