net/txgbe: fix flow error message object
authorChengwen Feng <fengchengwen@huawei.com>
Wed, 21 Apr 2021 06:31:13 +0000 (14:31 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 26 Apr 2021 10:48:17 +0000 (12:48 +0200)
This patch fixes parameter misusage when set rte flow action error.

Fixes: b7eeecb17556 ("net/txgbe: parse n-tuple filter")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/txgbe/txgbe_flow.c

index 130e35a..81d35f6 100644 (file)
@@ -512,7 +512,7 @@ action:
                memset(filter, 0, sizeof(struct rte_eth_ntuple_filter));
                rte_flow_error_set(error, EINVAL,
                        RTE_FLOW_ERROR_TYPE_ACTION,
-                       item, "Not supported action.");
+                       act, "Not supported action.");
                return -rte_errno;
        }
        filter->queue =