zephyr/tests
Ravi kumar Veeramally 58ba1d834e net: nbuf: Fix net_nbuf_compact() API
Current API description of net_nbuf_compact() is not very clear.
The first parameter needs to be the first net_buf in the chain.

The changes to this API are needed in order to clarify following
use cases:
1) User provides fragment that is not first of the chain and compact is
successfully done. In this case there is no free space in fragment list
after the input fragment. But there might be empty space in previous
fragments. So fragment chain is not completely compacted.

2) What if input fragment has been deleted and api returns the same
buf?

So this commit simplifies the API behavior. Now net_nbuf_compact()
expects the first parameter to be either TX or RX net_buf and then it
compacts it. It fails only if the input fragment is a data fragment.

Change-Id: I9e02dfcb6f3f2e2998826522a25ec207850a8056
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
2017-02-08 10:12:36 +02:00
..
benchmarks tests: benchmarks: put all benchmarks in the same folder 2017-01-31 21:36:46 +00:00
bluetooth Bluetooth: samples: Use Kconfig DEVICE_NAME variable when possible 2017-01-28 08:43:41 +02:00
booting/stub
compliance
crypto
drivers tests: add zephyr i2c driver api test 2017-02-04 19:31:31 +00:00
fs/fat_fs libc/minimal: Fix definition of ssize_t 2017-02-01 13:57:43 -08:00
include tests: include: Move timestamp.h into common location 2017-01-30 21:33:47 +00:00
kernel tests: kernel: mem_heap: added api and concept tests 2017-02-04 19:36:50 +00:00
legacy tests: remove old ARM vector table test 2017-02-07 19:52:09 +00:00
net net: nbuf: Fix net_nbuf_compact() API 2017-02-08 10:12:36 +02:00
power license: fix SPDX headings on new tests 2017-01-26 20:01:39 +00:00
subsys/debug/gdb_server
unit
ztest
defaults.tc
Kconfig
Makefile
Makefile.test