From: Wei Zhao Date: Wed, 12 Apr 2017 08:52:34 +0000 (+0800) Subject: net/ixgbe: fix generic filter return X-Git-Tag: spdx-start~3538 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c306ee121a2e57e3c24a1cdcbe686e0518f7d1a4;p=dpdk.git net/ixgbe: fix generic filter return Fix generic filter return info is not readable when repeat to create a rule. Fixes: 72c135a89f8 ("net/ixgbe: create consistent filter") Cc: stable@dpdk.org Signed-off-by: Wei Zhao --- diff --git a/drivers/net/ixgbe/ixgbe_flow.c b/drivers/net/ixgbe/ixgbe_flow.c index e2ba9c2d2f..35db3173ec 100644 --- a/drivers/net/ixgbe/ixgbe_flow.c +++ b/drivers/net/ixgbe/ixgbe_flow.c @@ -2589,6 +2589,9 @@ ixgbe_flow_create(struct rte_eth_dev *dev, out: TAILQ_REMOVE(&ixgbe_flow_list, ixgbe_flow_mem_ptr, entries); + rte_flow_error_set(error, -ret, + RTE_FLOW_ERROR_TYPE_HANDLE, NULL, + "Failed to create flow."); rte_free(ixgbe_flow_mem_ptr); rte_free(flow); return NULL;