zephyr/subsys/bluetooth/host
Pavel Vasilyev 14b4e30cdf bluetooth: host: Deprecated BT_CONN_TX_MAX
After https://github.com/zephyrproject-rtos/zephyr/pull/72090,
`conn_tx_alloc` no longer blocks, and each buffer always has a
corresponding `bt_conn_tx` object. This eliminates the need to configure
the number of `bt_conn_tx` objects via `CONFIG_BT_CONN_TX_MAX`, since
every buffer now carries its own context even when no callback is used.

This commit deprecates `CONFIG_BT_CONN_TX_MAX` as it is no longer
necessary. Instead, `CONFIG_BT_BUF_ACL_TX_COUNT` is used to allocate
`bt_conn_tx` objects for outgoing ACL data. ZLL already uses
`CONFIG_BT_BUF_ACL_TX_COUNT` to configure the number of outgoing ACL
packets. With this change, modifying the packet count will automatically
adjust the number of corresponding contexts, preventing both context
starvatoin and underutilization.

This approach also aligns with ISO, where the number of `bt_conn_tx`
objects for outgoing ISOdata matches `CONFIG_BT_ISO_TX_BUF_COUNT`.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-05-12 14:54:26 +02:00
..
classic bluetooth: host: Deprecated BT_CONN_TX_MAX 2025-05-12 14:54:26 +02:00
shell Bluetooth: Shell: Add missing includes for all BT host shell files 2025-04-17 21:17:29 +02:00
addr_internal.h
addr.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
adv.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
adv.h Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
aes_ccm.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
att_internal.h Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
att.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
buf_view.h Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
buf.c Bluetooth: HCI: Use H:4 encoding for buffers 2025-04-29 13:00:33 +02:00
CMakeLists.txt Bluetooth: Host: Remove HCI ECC emulation 2025-01-23 10:14:46 +01:00
conn_internal.h Bluetooth: HCI: Use H:4 encoding for buffers 2025-04-29 13:00:33 +02:00
conn.c bluetooth: host: Deprecated BT_CONN_TX_MAX 2025-05-12 14:54:26 +02:00
crypto_psa.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
crypto.h bluetooth: host/crypto: fix the psa crypto init for host 2025-02-10 14:33:24 +01:00
cs.c Bluetooth: Host: Remove unnecessary ifdef from cs.c 2025-05-08 15:56:35 +02:00
data.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
direction_internal.h Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
direction.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
ecc.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
ecc.h Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
gatt_internal.h Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
gatt.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
hci_common.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
hci_core.c bluetooth: host: Add a check for num of bt_conn_tx and ACL/ISO bufs 2025-05-12 14:54:26 +02:00
hci_core.h Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
hci_raw_internal.h Bluetooth: Host: Remove deprecated HCI driver API 2024-11-22 11:37:12 +01:00
hci_raw.c Bluetooth: HCI: Use H:4 encoding for buffers 2025-04-29 13:00:33 +02:00
id.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
id.h Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
iso_internal.h Bluetooth: HCI: Use H:4 encoding for buffers 2025-04-29 13:00:33 +02:00
iso.c Bluetooth: ISO: fix hci_le_set_cig_params validation 2025-04-30 23:03:07 +02:00
Kconfig bluetooth: host: Deprecated BT_CONN_TX_MAX 2025-05-12 14:54:26 +02:00
Kconfig.gatt bluetooth: host: fix GATT writable Kconfig descriptions 2025-03-28 08:50:05 +01:00
Kconfig.l2cap Bluetooth: Tester: Use BT_L2CAP_SEG_RECV for L2CAP tests 2024-11-27 08:16:18 +01:00
keys.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
keys.h Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
l2cap_internal.h Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
l2cap.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
long_wq.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
long_wq.h Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
monitor.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
monitor.h Bluetooth: HCI: Use H:4 encoding for buffers 2025-04-29 13:00:33 +02:00
scan.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
scan.h Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
settings.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
settings.h Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
smp_null.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
smp.c bluetooth: classic: smp: fix the wrong Responder Key Distribution 2025-04-23 10:04:23 +02:00
smp.h Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00
uuid.c Bluetooth: Host: Add missing includes for all BT host files 2025-04-17 21:17:29 +02:00