net: Remove deprecated CONFIG_NET_PKT_BUF_DATA_POOL_SIZE

This removes the deprecated CONFIG_NET_PKT_BUF_DATA_POOL_SIZE.
User should either use CONFIG_NET_PKT_BUF_RX_DATA_POOL_SIZE or
CONFIG_NET_PKT_BUF_TX_DATA_POOL_SIZE depending of net packet type.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
This commit is contained in:
Jukka Rissanen 2024-12-09 10:55:53 +02:00 committed by Benjamin Cabé
commit 228b271f01
2 changed files with 5 additions and 12 deletions

View file

@ -851,18 +851,10 @@ config NET_BUF_DATA_SIZE
help
This value tells what is the fixed size of each network buffer.
config NET_BUF_DATA_POOL_SIZE
int "[DEPRECATED] Size of the memory pool where buffers are allocated from"
default 4096 if NET_L2_ETHERNET
default 2048
depends on NET_BUF_VARIABLE_DATA_SIZE
help
This config is deprecated, use NET_PKT_BUF_RX_DATA_POOL_SIZE and
NET_PKT_BUF_TX_DATA_POOL_SIZE instead.
config NET_PKT_BUF_RX_DATA_POOL_SIZE
int "Size of the RX memory pool where buffers are allocated from"
default NET_BUF_DATA_POOL_SIZE
default 4096 if NET_L2_ETHERNET
default 2048
depends on NET_BUF_VARIABLE_DATA_SIZE
help
This value tell what is the size of the RX memory pool where each
@ -870,7 +862,8 @@ config NET_PKT_BUF_RX_DATA_POOL_SIZE
config NET_PKT_BUF_TX_DATA_POOL_SIZE
int "Size of the TX memory pool where buffers are allocated from"
default NET_BUF_DATA_POOL_SIZE
default 4096 if NET_L2_ETHERNET
default 2048
depends on NET_BUF_VARIABLE_DATA_SIZE
help
This value tell what is the size of the TX memory pool where each

View file

@ -31,7 +31,7 @@ NET_BUF_POOL_FIXED_DEFINE(cooked_bufs, CONFIG_NET_CAPTURE_BUF_COUNT,
CONFIG_NET_BUF_DATA_SIZE, 4, NULL);
#else
NET_BUF_POOL_VAR_DEFINE(cooked_bufs, CONFIG_NET_CAPTURE_BUF_COUNT,
CONFIG_NET_BUF_DATA_POOL_SIZE, 4, NULL);
CONFIG_NET_PKT_BUF_RX_DATA_POOL_SIZE, 4, NULL);
#endif
#define COOKED_MTU 1024