commit | 77e1a9dcadff4555c5fd9d5ecef10cd7d9fb1c28 | [log] [tgz] |
---|---|---|
author | Jonathan Rico <jonathan.rico@nordicsemi.no> | Tue Sep 20 15:48:11 2022 +0200 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Mon Sep 26 11:05:04 2022 +0200 |
tree | 7834280a69919b477b3bde777e4da5bf12faf813 | |
parent | 8e207fefad2e1aeaaf03ee4da0fb024d167b7a96 [diff] |
Bluetooth: host: l2cap: add alloc_seg callback This callback allows use-cases where the SDU is much larger than the l2cap MPS. The stack will then try to allocate using this callback if specified, and fall-back on using the buffer's pool (previous behavior). This way one can define two buffer pools, one with a very large buffer size, and one with a buffer size >= MPS, and the stack will allocate from that instead. Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>