This website requires JavaScript.
Explore
Help
Sign In
OrgZephyr
/
zephyr
mirror of
https://github.com/zephyrproject-rtos/zephyr.git
Watch
1
Star
0
Fork
You've already forked zephyr
0
Code
Issues
Releases
Wiki
Activity
92c7ef5939
zephyr
/
tests
/
net
/
buf
/
prj.conf
5 lines
86 B
Plaintext
Raw
Normal View
History
Unescape
Escape
net: Add initial generic buffer implementation We need to have a generic buffer API in order to efficiently transfer data between different subsystems. The first such case will be the Networking and Bluetooth subsystems where 6LoWPAN data will be passed back and forth. The needed API needs to provide enough flexibility for different buffer sizes as well as custom protocol-specific context data. The implementation offered in this patch follows the general design of the existing Networking and Bluetooth buffer implementations by using a backing array of buffer which is fed into a "free buffers" FIFO for management. The main difference is that the API allows specifying variable sized buffers for each created pool, as well as a minimum amount of "user data" that's allocated as part of each buffer. There's also an optional destroy callback that's e.g. useful for HCI flow control in Bluetooth (for notifying the controller of available buffers). Change-Id: I00b7007135a0ff35219f38f48658f31728fbb7ca Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2015-10-07 23:32:54 +08:00
CONFIG_NET_BUF=y
net: buf: Change NET_BUF_DEBUG to NET_BUF_LOG and add a level option It will be thus possible to enable only the error logging, or the other sys_log levels. Change-Id: I0c0ed789f7cfbb4811320e8f8249151288274873 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2016-12-15 18:18:30 +08:00
#CONFIG_NET_BUF_LOG=y
#CONFIG_SYS_LOG_NET_BUF_LEVEL=4
tests: convert tests/net/buf to the new framework This is a sample how to use the framework in an integration test environment. Change-Id: I01619fce06759ed523c8c878e8bbda6d8d87d604 Signed-off-by: Jaakko Hannikainen <jaakko.hannikainen@intel.com> Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-08-22 20:03:01 +08:00
CONFIG_ZTEST=y