From c306ee121a2e57e3c24a1cdcbe686e0518f7d1a4 Mon Sep 17 00:00:00 2001 From: Wei Zhao Date: Wed, 12 Apr 2017 16:52:34 +0800 Subject: [PATCH] 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 --- drivers/net/ixgbe/ixgbe_flow.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.20.1