Bluetooth: Introduce separate pool for discardable events
Introduce a separate buffer pool for events which the HCI driver considers discardable. Examples of such events could be e.g. Advertising Reports. The benefit of having such a pool means that the if there is a heavy inflow of such events it will not cause the allocation for other critical events to block and may even eliminate deadlocks in some cases. Also update all mesh samples not to specify explicit RX buffer counts anymore. Instead, create appropriate defaults in Kconfig so that we only need to override this in the app for cases like the bbc:microbit with limited memory. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
fc2fcd10cf
commit
0d9dab300e
29 changed files with 57 additions and 31 deletions
|
@ -115,7 +115,8 @@ void TM_EvtReceivedCb(TL_EvtPacket_t *hcievt)
|
|||
hcievt->evtserial.evt.evtcode);
|
||||
goto out;
|
||||
default:
|
||||
buf = bt_buf_get_evt(evtserial.evt.evtcode, K_FOREVER);
|
||||
buf = bt_buf_get_evt(evtserial.evt.evtcode, false,
|
||||
K_FOREVER);
|
||||
break;
|
||||
}
|
||||
net_buf_add_mem(buf, &hcievt->evtserial.evt,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue