Bluetooth: L2CAP: Use NET_BUF_TX_COUNT as fragment count
When NET_L2_BT the memory pressure for fragments can be quite high since that would be transfering IP packets which are considerable big so this makes our frag_pool to be of the same size as NET_BUF_TX_COUNT. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
4b8cd200ed
commit
dd4b340205
|
@ -19,6 +19,7 @@ endif # BT_HCI_ACL_FLOW_CONTROL
|
|||
|
||||
config BT_L2CAP_TX_BUF_COUNT
|
||||
int "Number of L2CAP TX buffers"
|
||||
default NET_BUF_TX_COUNT if NET_L2_BT
|
||||
default BT_CTLR_TX_BUFFERS if BT_CTLR
|
||||
default 3
|
||||
range 2 255
|
||||
|
@ -27,6 +28,7 @@ config BT_L2CAP_TX_BUF_COUNT
|
|||
|
||||
config BT_L2CAP_TX_FRAG_COUNT
|
||||
int "Number of L2CAP TX fragment buffers"
|
||||
default NET_BUF_TX_COUNT if NET_L2_BT
|
||||
default 2
|
||||
range 0 255
|
||||
help
|
||||
|
|
Loading…
Reference in a new issue