net/softnic: fix mixing enum values
authorJasvinder Singh <jasvinder.singh@intel.com>
Wed, 31 Oct 2018 11:58:22 +0000 (11:58 +0000)
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>
Fri, 2 Nov 2018 10:20:57 +0000 (11:20 +0100)
commitce13d80c36688db41175fb6cc722912114338e8a
tree2e93aae1d6ae323ce846c47757697c5a81de4185
parent331ce43dc564309decdfa9a1f024d4f87a5917d4
net/softnic: fix mixing enum values

Fix mixing enum types enum rte_table_action_policer
and enum rte_mtr_policer_action for dereference of
policer action.

Coverity issue 323483, 323511
Fixes: 7e30e444c3e4 ("net/softnic: support flow meter action")
Fixes: 8a917ef88db7 ("net/softnic: update policer actions")

Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
drivers/net/softnic/rte_eth_softnic_flow.c
drivers/net/softnic/rte_eth_softnic_internals.h
drivers/net/softnic/rte_eth_softnic_meter.c