vmxnet3: coverity woe 30/15130/3
authorSteven <sluong@cisco.com>
Wed, 3 Oct 2018 22:25:13 +0000 (15:25 -0700)
committerSteven <sluong@cisco.com>
Thu, 4 Oct 2018 05:33:29 +0000 (22:33 -0700)
commit744da656d3442bb812f50d6e8746f0f11adee8b3
treec14a58b523ccb6b503a6547b25c76b7cccd167e5
parent5958769b2c9463f2c8da85a380da1ec439354a10
vmxnet3: coverity woe

Coverity complains that hb might be null when !prev_b0 is true. It may be right, but not likely.
To make the code more explicit when it parses a complete packet, set got_packet = 1 and test
got_packet instead of prev_b0 which is somewhat obscure.

Use vlib_buffer_free_one rather than vlib_buffer_free_no_next in output.c which takes care of
chain buffers.

Change-Id: I6e0587605fdc622c3f55fedd74c474666631ed91
Signed-off-by: Steven <sluong@cisco.com>
src/plugins/vmxnet3/input.c
src/plugins/vmxnet3/output.c