No description
Find a file
Tomasz Bursztyka 675277e28d net: nbuf: Initialize nbuf memory area after allocation
After commit 71c7c01819 about buf pool, we
started to get spurious behaviors on various places of the code on
different boards (a101, frdm...) BUT on qemu. Basically, outgoing ip/udp
packets were full of garbage. Or sometimes it was the abilitty to parse
incoming packet that was happening.

The difference between qemu and actualy boards is - afaik, at least, let
me know if I am wrong - that qemu provide initialized memory (full of
0s). Following this asssumption, this patch just reset the nbuf right
after it got allocated. And all started to work again as thought.

It's in fact a good thing to reset nbuf memory. Even before the above
commit: after being used more than once, a buffer would have ended up
with old content, and this could have been generating a bug. So let's be
on the safe side and always intialize nbuf content.

Change-Id: I50647d9e9b82a4ed340a5ceb0d69409b0194dddd
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2016-12-16 19:14:56 +01:00
.known-issues known-issues: update rule for TCF summary line 2016-09-16 11:31:27 -07:00
arch kernel: introduce single-threaded kernel 2016-12-15 16:17:39 -05:00
boards drivers: eth_ksdk: Theres is no longer 'ETHERNET' Kconfig option 2016-12-16 19:14:55 +01:00
doc kernel: add k_cpu_idle/k_cpu_atomic_idle() 2016-12-15 16:17:38 -05:00
drivers drivers: eth_ksdk: Simplifying MAC address generation 2016-12-16 19:14:55 +01:00
ext power: Add ARC core suspend and resume support 2016-12-15 12:49:33 +00:00
include net: l2: ethernet: Handle Ethernet II minimal frame size relevantly 2016-12-16 19:14:54 +01:00
kernel kernel: introduce single-threaded kernel 2016-12-15 16:17:39 -05:00
lib iot/dns: Use a k_sem for the DNS rx routine 2016-12-16 19:14:53 +01:00
misc libc: rework libc selection and reduce Kconfigs 2016-12-15 22:31:28 +00:00
samples sample: net: Updating qemu config for 802.15.4 testing 2016-12-16 19:14:56 +01:00
scripts scripts: remove old qemu patch 2016-12-12 20:25:06 +00:00
subsys net: nbuf: Initialize nbuf memory area after allocation 2016-12-16 19:14:56 +01:00
tests tests/tcp: Initialize buffer to NULL 2016-12-16 19:14:53 +01:00
.checkpatch.conf checkpatch: ignore CONST_STRUCT warnings 2016-11-11 22:12:22 +00:00
.gitattributes First commit 2015-04-10 16:44:37 -07:00
.gitignore testcases: instruct git to ignore *log and outdir-* 2016-06-14 22:01:34 +00:00
.gitreview Add a .gitreview file 2016-02-20 14:25:01 +00:00
.mailmap mailmap: update with new emails 2016-10-07 16:15:24 +00:00
defaults.tc testcases: catch more fatal kernel error messages 2016-11-11 13:21:16 +00:00
Kbuild build: remove old kernel support 2016-11-07 11:34:18 -08:00
Kconfig kconfig: Do not put architecture in the title 2016-03-14 16:50:51 -04:00
Kconfig.zephyr usb: move usb subsystem to subsys/usb and cleanup header inclusion 2016-10-31 19:21:42 +00:00
LICENSE add top level Apache 2.0 license file 2016-02-05 20:24:37 -05:00
LICENSING.rst LICENSING: clarify licenses of imported / reused code 2016-11-11 01:36:14 +00:00
MAINTAINERS MAINTAINERS: fixed email for sensor subsystem 2016-12-16 14:18:03 +00:00
Makefile Merge "Merge net branch into master" 2016-12-05 15:56:26 +00:00
Makefile.inc kernel: remove NANOKERNEL and MICROKERNEL configs 2016-12-14 13:45:52 +00:00
release-notes.rst release-note: initial import with 1.6 release notes 2016-12-03 00:06:23 -05:00
zephyr-env.sh win-build: corrects scripts_path for windows build. 2016-10-15 15:09:54 +00:00