Skip to content

Commit aa9a1f6

Browse files
Vudentzjhedberg
authored andcommitted
Bluetooth: Use NET_BUF_RX_COUNT if NET_L2_BT is enabled
If NET_L2_BT is enabled we need enough acl_in_pool needs to be big enough to contain a full IP packet since that is no longer processed by RX thread buffer would be queued to syswq to reassemble the SDU. Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent dd4b340 commit aa9a1f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/bluetooth/host/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ config BT_HCI_CMD_COUNT
2222

2323
config BT_RX_BUF_COUNT
2424
int "Number of HCI RX buffers"
25+
default NET_BUF_RX_COUNT if NET_L2_BT
2526
default 3 if BT_RECV_IS_RX_THREAD
2627
default 20 if (BT_MESH && !(BT_DISCARDABLE_BUF_COUNT > 0))
2728
default 10
@@ -233,6 +234,7 @@ if BT_HCI_ACL_FLOW_CONTROL
233234
config BT_ACL_RX_COUNT
234235
int "Number of incoming ACL data buffers"
235236
default BT_CTLR_RX_BUFFERS if BT_CTLR
237+
default NET_BUF_RX_COUNT if NET_L2_BT
236238
default 6
237239
range 1 64
238240
help

0 commit comments

Comments
 (0)