diff options
| -rw-r--r-- | embassy-net/Cargo.toml | 2 | ||||
| -rw-r--r-- | embassy-net/src/packet_pool.rs | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/embassy-net/Cargo.toml b/embassy-net/Cargo.toml index 90e84d828..2d0116bd5 100644 --- a/embassy-net/Cargo.toml +++ b/embassy-net/Cargo.toml | |||
| @@ -28,6 +28,8 @@ pool-4 = [] | |||
| 28 | pool-8 = [] | 28 | pool-8 = [] |
| 29 | pool-16 = [] | 29 | pool-16 = [] |
| 30 | pool-32 = [] | 30 | pool-32 = [] |
| 31 | pool-64 = [] | ||
| 32 | pool-128 = [] | ||
| 31 | 33 | ||
| 32 | [dependencies] | 34 | [dependencies] |
| 33 | 35 | ||
diff --git a/embassy-net/src/packet_pool.rs b/embassy-net/src/packet_pool.rs index b43ae2eb2..99311ae74 100644 --- a/embassy-net/src/packet_pool.rs +++ b/embassy-net/src/packet_pool.rs | |||
| @@ -17,6 +17,12 @@ pub const PACKET_POOL_SIZE: usize = 16; | |||
| 17 | #[cfg(feature = "pool-32")] | 17 | #[cfg(feature = "pool-32")] |
| 18 | pub const PACKET_POOL_SIZE: usize = 32; | 18 | pub const PACKET_POOL_SIZE: usize = 32; |
| 19 | 19 | ||
| 20 | #[cfg(feature = "pool-64")] | ||
| 21 | pub const PACKET_POOL_SIZE: usize = 64; | ||
| 22 | |||
| 23 | #[cfg(feature = "pool-128")] | ||
| 24 | pub const PACKET_POOL_SIZE: usize = 128; | ||
| 25 | |||
| 20 | pool!(pub PacketPool: [Packet; PACKET_POOL_SIZE]); | 26 | pool!(pub PacketPool: [Packet; PACKET_POOL_SIZE]); |
| 21 | pub type PacketBox = Box<PacketPool>; | 27 | pub type PacketBox = Box<PacketPool>; |
| 22 | 28 | ||
