Bluetooth: Move HCI command buffer user data into separate array
The HCI command buffers are the only ones with more than 4 bytes of required user data. Move the user data into a separate array and do the mapping with the help of net_buf_id(). After this, it will be possible to reduce the default net_buf user data size from 8 to 4. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
a7518ba30f
commit
0ad6dbd80d
2 changed files with 8 additions and 8 deletions
|
@ -25,10 +25,10 @@ BUILD_ASSERT(CONFIG_SYSTEM_WORKQUEUE_PRIORITY < 0);
|
|||
*/
|
||||
BUILD_ASSERT(CONFIG_BT_HCI_TX_PRIO < CONFIG_BT_RX_PRIO);
|
||||
|
||||
/* The Bluetooth subsystem requires network buffers to have at least 8 bytes
|
||||
/* The Bluetooth subsystem requires network buffers to have at least 4 bytes
|
||||
* reserved for user data.
|
||||
*/
|
||||
BUILD_ASSERT(CONFIG_NET_BUF_USER_DATA_SIZE >= 8);
|
||||
BUILD_ASSERT(CONFIG_NET_BUF_USER_DATA_SIZE >= 4);
|
||||
|
||||
#if defined(CONFIG_BT_CTLR)
|
||||
/* The Bluetooth Controller's priority receive thread priority shall be higher
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue