Forward and hold packets (#15634)

This commit is contained in:
sakridge
2021-03-03 10:23:05 -08:00
committed by GitHub
parent 6acb06f8d8
commit 830be855dc
5 changed files with 207 additions and 58 deletions

View File

@ -7,9 +7,8 @@ use std::net::SocketAddr;
pub const NUM_PACKETS: usize = 1024 * 8;
pub const PACKETS_PER_BATCH: usize = 256;
pub const PACKETS_PER_BATCH: usize = 128;
pub const NUM_RCVMMSGS: usize = 128;
pub const PACKETS_BATCH_SIZE: usize = PACKETS_PER_BATCH * PACKET_DATA_SIZE;
#[derive(Debug, Default, Clone)]
pub struct Packets {