zephyr/subsys
Jonathan Rico 7093538c42 Bluetooth: att: don't re-use the ATT buffer for confirmations
If the peer is a zephyr host, there is no problem, as the Zephyr
host limits sending parallel REQs and INDs.

But the spec allows sending those in parallel, and it may end up that
the re-used REQ buffer hasn't been destroyed when an indication comes.

Only re-use the buffer when enqueuing ATT responses.

This means that we may run out of buffers if the peer sends too many
indications and our application also sends a lot of commands/notifications.

The rationale for this is that having to handle a lot of requests is a
more plausible scenario (e.g. being discovered by multiple peers) than
handling lots of parallel indications.

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-09-28 14:21:27 +03:00
..
bluetooth Bluetooth: att: don't re-use the ATT buffer for confirmations 2023-09-28 14:21:27 +03:00
canbus canbus: isotp: rename ctx function parameters to rctx/sctx 2023-09-21 11:54:11 +02:00
console
debug debug: Set thread_info.c variables to const 2023-09-11 19:56:18 +02:00
demand_paging kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
dfu mgmt/MCUmgr/grp/img: Add support for three image configuration 2023-09-22 15:13:31 +02:00
disk
dsp
emul
fb
fs nvs: replace CRC with better hash function for lookup cache 2023-09-04 18:21:20 +02:00
input input: longpress: use POST_KERNEL level 2023-09-15 16:04:19 +02:00
ipc ipc: icmsg: Dedicated workqueue for ICMSG backend 2023-09-12 10:17:27 +02:00
jwt random: Fix kconfig symbol name 2023-09-27 11:55:10 -05:00
logging logging: runtime setting of syslog server ip address 2023-09-27 09:13:23 +02:00
lorawan lorawan: Add LORAWAN_PUBLIC_NETWORK configuration choice 2023-09-20 08:57:20 +02:00
mem_mgmt dt: Make zephyr,memory-attr a capabilities bitmask 2023-09-15 12:46:54 +02:00
mgmt random: Fix kconfig symbol name 2023-09-27 11:55:10 -05:00
modbus modbus: use macro for function code for input register 2023-08-16 14:58:47 +02:00
modem modem: chat: Track size of script_chat request to avoid strlen() 2023-09-18 14:11:40 +01:00
net net: wifi: Move function from shell to mgmt 2023-09-28 12:30:29 +02:00
pm pm: policy: add check for device busy in policy 2023-09-15 14:51:50 -04:00
portability kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
random random: Fix feature dependency usage 2023-09-27 11:55:10 -05:00
retention retention: Add bootloader configuration interface 2023-09-27 20:18:31 -04:00
rtio include: always use <> for Zephyr includes 2023-09-14 13:49:58 +02:00
sd drivers: sdhc: allow bandwidth selection 2023-09-13 16:20:59 +02:00
sensing sensing: sensor_mgmt: s/device.h/init.h 2023-08-29 12:17:24 +01:00
settings settings: shell: Add value type and allow for strings to be used 2023-09-22 14:02:02 +02:00
shell shell: modules: kernel: add human readable uptime 2023-09-28 09:34:00 +02:00
sip_svc subsystem: sip_svc: Reduce the max timeout to 1 second. 2023-09-15 09:26:49 +02:00
stats
storage storage: rename shadow variables 2023-08-22 11:39:58 +02:00
task_wdt
testsuite testsuite: coverage: extend code coverage to include risc-v 2023-09-26 23:32:45 -04:00
timing
tracing tracing: remove references to deprecated k_pipe_block_put 2023-09-18 19:20:02 -04:00
usb usb: device: audio: Support volume control 2023-09-21 15:04:14 +02:00
zbus zbus: Add Message subscriber 2023-09-27 20:03:43 +03:00
CMakeLists.txt dt: Make zephyr,memory-attr a capabilities bitmask 2023-09-15 12:46:54 +02:00
Kconfig dt: Make zephyr,memory-attr a capabilities bitmask 2023-09-15 12:46:54 +02:00