f12f9d5e95
Currently a shallow clone of a packet will bump the reference count on all the fragments. The net_pkt_unref() function, however, only drops the reference count on the head fragment. Fix this by only bumping the ref count on the head buf during shallow clone. Only bumping the ref count of head is more in line with the idea that head buf is not responsible for the fragments of its child. Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com> |
||
---|---|---|
.. | ||
ip | ||
l2 | ||
lib | ||
pkt_filter | ||
buf.c | ||
CMakeLists.txt | ||
hostname.c | ||
Kconfig | ||
Kconfig.hostname | ||
Kconfig.template.log_config.default.net | ||
Kconfig.template.log_config.net |