interface: Fix the tso segmentation 20/20220/4
authorMohsin Kazmi <sykazmi@cisco.com>
Tue, 18 Jun 2019 21:45:54 +0000 (23:45 +0200)
committerDamjan Marion <dmarion@me.com>
Wed, 19 Jun 2019 13:33:17 +0000 (13:33 +0000)
commitdac1edbbbf8f42117f182b37618022167454f868
tree6c0df5e96f4a2c09cf39bedfe2532e77e29c8754
parent13d33548803311d8bbd7d06864513f96c86f6ac1
interface: Fix the tso segmentation

ASSERT (b[0]->current_length > 0) fails in single loop of
function vnet_interface_output_node_inline_gso.

Under 'do_segmentation' condition, there are two places in code
which execute "continue" in while-loop without incrementing the
pointer to next buffer which is wrong behavior. In fact, at one
place, current buffer is also freed. In which case, during next
iteration buffer ptr still points to free buffer which current
length is 0 and triggers the above assert.

Type: fix

Change-Id: Ic9d540748c1d00a54e18acc2b0f23730728d7460
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
src/vnet/interface_output.c