Gregory Etelson 83baf56aa7 mbuf: fix bulk allocation when debug enabled
The debug assertions when allocating a raw mbuf are not correct since
commit 8f094a9ac5d7 ("mbuf: set mbuf fields while in pool"),
which triggers a panic when using this function in debug mode

Change the expected number of segments to 1 instead of 0, and
factorize these sanity checks.

Fixes: 8f094a9ac5d7 ("mbuf: set mbuf fields while in pool")

Signed-off-by: Gregory Etelson <gregory@weka.io>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
2017-05-10 18:15:34 +02:00
..
2017-05-05 14:38:35 +02:00
2017-05-05 14:38:17 +02:00
2017-04-21 02:15:29 +02:00
2017-04-21 01:29:21 +02:00
2017-04-05 23:03:23 +02:00