Skip to content

Commit 5d3d9b7

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: controller: Internal documentation of node rx count
Document with comments, the explanation of node rx count and the design of the free rx PDU management. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
1 parent bc71d39 commit 5d3d9b7

File tree

1 file changed

+12
-0
lines changed
  • subsys/bluetooth/controller/ll_sw

1 file changed

+12
-0
lines changed

subsys/bluetooth/controller/ll_sw/ull.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,25 @@ static struct {
199199
uint8_t pool[sizeof(memq_link_t) * EVENT_DONE_MAX];
200200
} mem_link_done;
201201

202+
/* Minimum number of node rx for ULL to LL/HCI thread per connection.
203+
* Increasing this by times the max. simultaneous connection count will permit
204+
* simultaneous parallel PHY update or Connection Update procedures amongst
205+
* active connections.
206+
*/
202207
#if defined(CONFIG_BT_CTLR_PHY) && defined(CONFIG_BT_CTLR_DATA_LENGTH)
203208
#define LL_PDU_RX_CNT 3
204209
#else
205210
#define LL_PDU_RX_CNT 2
206211
#endif
207212

213+
/* No. of node rx for LLL to ULL.
214+
* Reserve 3, 1 for adv data, 1 for scan response and 1 for empty PDU reception.
215+
*/
208216
#define PDU_RX_CNT (CONFIG_BT_CTLR_RX_BUFFERS + 3)
217+
218+
/* Part sum of LLL to ULL and ULL to LL/HCI thread node rx count.
219+
* Will be used below in allocating node rx pool.
220+
*/
209221
#define RX_CNT (PDU_RX_CNT + LL_PDU_RX_CNT)
210222

211223
static MFIFO_DEFINE(pdu_rx_free, sizeof(void *), PDU_RX_CNT);

0 commit comments

Comments
 (0)