Kconfig: net: deprecate NET_BUF_USER_DATA_LEN

As user data sizes are now set on a per pool basis, this Kconfig option
has no purpose.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
Jordan Yates 2021-11-21 12:30:47 +10:00 committed by Johan Hedberg
commit 8e99db5801
10 changed files with 4 additions and 22 deletions

View file

@ -15,10 +15,6 @@
#include <sys/util.h>
#include <zephyr.h>
#ifndef CONFIG_NET_BUF_USER_DATA_SIZE
#define CONFIG_NET_BUF_USER_DATA_SIZE 0
#endif
#ifdef __cplusplus
extern "C" {
#endif
@ -1216,7 +1212,6 @@ extern const struct net_buf_data_cb net_buf_var_cb;
* @param _destroy Optional destroy callback when buffer is freed.
*/
#define NET_BUF_POOL_DEFINE(_name, _count, _size, _ud_size, _destroy) \
BUILD_ASSERT(_ud_size <= CONFIG_NET_BUF_USER_DATA_SIZE); \
NET_BUF_POOL_FIXED_DEFINE(_name, _count, _size, _ud_size, _destroy)
/**

View file

@ -1248,7 +1248,7 @@ static inline bool net_pkt_is_being_overwritten(struct net_pkt *pkt)
*/
#define NET_PKT_DATA_POOL_DEFINE(name, count) \
NET_BUF_POOL_DEFINE(name, count, CONFIG_NET_BUF_DATA_SIZE, \
CONFIG_NET_BUF_USER_DATA_SIZE, NULL)
0, NULL)
/** @cond INTERNAL_HIDDEN */