aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorChenmin Sun <chenmin.sun@intel.com>2020-07-06 02:46:00 +0800
committerDamjan Marion <dmarion@me.com>2020-07-16 21:44:19 +0000
commitbab02f0b184b63c4159ded030cf34044be10da40 (patch)
treec0cd5db796503970cd8db254784a406f5f7f01ec /src/plugins
parent01a103bec1771a22ca244de0d31ba91937243dd6 (diff)
dpdk: fix coverity warning in the flow code
CID 211153 Type: fix Signed-off-by: Chenmin Sun <chenmin.sun@intel.com> Change-Id: Ic4d518d047c3ff36d9a7b72477c3efcb554d05bb
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dpdk/device/flow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/dpdk/device/flow.c b/src/plugins/dpdk/device/flow.c
index 674f2f50e64..f34050ac033 100644
--- a/src/plugins/dpdk/device/flow.c
+++ b/src/plugins/dpdk/device/flow.c
@@ -221,7 +221,7 @@ dpdk_flow_add (dpdk_device_t * xd, vnet_flow_t * f, dpdk_flow_entry_t * fe)
}
protocol = l2tp->protocol;
}
- if (f->type == VNET_FLOW_TYPE_IP4_IPSEC_ESP)
+ else if (f->type == VNET_FLOW_TYPE_IP4_IPSEC_ESP)
{
vnet_flow_ip4_ipsec_esp_t *tesp = &f->ip4_ipsec_esp;
item->type = RTE_FLOW_ITEM_TYPE_IPV4;