From: Roman Zhukov Date: Wed, 16 May 2018 14:21:23 +0000 (+0100) Subject: net/sfc: fix errno if flow API RSS action parse fails X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1613848c2cd109d525d60cb6e84c9b893ef0ccce;p=dpdk.git net/sfc: fix errno if flow API RSS action parse fails The value of rte_errno must be positive in case of an error. Fixes: d77d07391d4d ("net/sfc: support flow API RSS action") Cc: stable@dpdk.org Signed-off-by: Roman Zhukov Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/sfc_flow.c b/drivers/net/sfc/sfc_flow.c index ddb97f1b08..5613d59a9c 100644 --- a/drivers/net/sfc/sfc_flow.c +++ b/drivers/net/sfc/sfc_flow.c @@ -1572,7 +1572,7 @@ sfc_flow_parse_actions(struct sfc_adapter *sa, rc = sfc_flow_parse_rss(sa, actions->conf, flow); if (rc != 0) { - rte_flow_error_set(error, rc, + rte_flow_error_set(error, -rc, RTE_FLOW_ERROR_TYPE_ACTION, actions, "Bad RSS action"); return -rte_errno;