From: Ferruh Yigit Date: Tue, 11 Apr 2017 14:24:15 +0000 (+0100) Subject: net/ixgbe: fix duplicated check X-Git-Tag: spdx-start~3531 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=97c5fbf6a44d89865642ca667a452dc38120ee50;p=dpdk.git net/ixgbe: fix duplicated check Same check duplicated, updated check according what commend states. Coverity issue: 1407507 Fixes: 11777435c727 ("net/ixgbe: parse flow director filter") Cc: stable@dpdk.org Signed-off-by: Ferruh Yigit Acked-by: Wei Zhao --- diff --git a/drivers/net/ixgbe/ixgbe_flow.c b/drivers/net/ixgbe/ixgbe_flow.c index 35db3173ec..af76009368 100644 --- a/drivers/net/ixgbe/ixgbe_flow.c +++ b/drivers/net/ixgbe/ixgbe_flow.c @@ -2231,7 +2231,7 @@ ixgbe_parse_fdir_filter_tunnel(const struct rte_flow_attr *attr, index++; NEXT_ITEM_OF_PATTERN(item, pattern, index); if ((item->type != RTE_FLOW_ITEM_TYPE_VLAN) && - (item->type != RTE_FLOW_ITEM_TYPE_VLAN)) { + (item->type != RTE_FLOW_ITEM_TYPE_IPV4)) { memset(rule, 0, sizeof(struct ixgbe_fdir_rule)); rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_ITEM,