flow: fix several crash issues 82/23582/2
authorChenmin Sun <chenmin.sun@intel.com>
Thu, 21 Nov 2019 21:33:40 +0000 (05:33 +0800)
committerDamjan Marion <dmarion@me.com>
Tue, 26 Nov 2019 13:27:36 +0000 (13:27 +0000)
commitbe2ad0b4743ed8a3875a5b6039c10c66eb07614c
tree80954b85990daea21693e8cb2e487334b47ef836
parent7dbf9a1a4fff5c3b20ad972289e49e3f88e82f2d
flow: fix several crash issues

Type: fix

This patch fixes crash issues(marked in brackets) in the below test cases

test flow enable index 0 1/1 -> [crash]
test flow disable index 0 1/1 -> [crash]

test flow add src-ip 192.168.8.8 proto udp redirect-to-queue 8
test flow enable index 0 1/1
test flow disable index 0 1/1 - [crash]

test flow add src-ip 192.168.8.8 proto udp redirect-to-queue 8
test flow enable index 0 1/1
test flow enable index 0 1/2
test flow del index 0 -> [crash]

Signed-off-by: Chenmin Sun <chenmin.sun@intel.com>
Change-Id: I84bc6faa3d93a2cab4c82e8a876a8b1067257b62
src/plugins/dpdk/device/flow.c
src/vnet/flow/flow.c