Skip to content

Commit

Permalink
Net: Increase NET_BUF_USER_DATA_SIZE value to 8
Browse files Browse the repository at this point in the history
Increase `NET_BUF_USER_DATA_SIZE` value to 8 if `BT_CONN` is enabled.
This is necessary because one of the backported commits adds one struct
member into `struct tx_meta`, and that will be stored in the buffer
user data.

On main, this Kconfig option has been deprecated, hence why this change
was not present in the original patch set.

Signed-off-by: Théo Battrel <[email protected]>
  • Loading branch information
theob-pro authored and cfriedt committed Jun 6, 2023
1 parent f2eeeda commit f72d8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ config NET_BUF_USER_DATA_SIZE
int "Size of user_data available in every network buffer"
default 24 if MCUMGR_SMP_UDP && MCUMGR_SMP_UDP_IPV6
default 8 if MCUMGR_SMP_UDP && MCUMGR_SMP_UDP_IPV4
default 8 if ((BT || NET_TCP2) && 64BIT) || BT_ISO || MCUMGR_SMP_BT
default 8 if ((BT || NET_TCP2) && 64BIT) || BT_CONN || BT_ISO
default 4
range 4 65535 if BT || NET_TCP2
range 0 65535
Expand Down

0 comments on commit f72d8ff

Please sign in to comment.