* [dpdk-stable] [PATCH 18.05] net/mlx5: fix return value when deleting fdir filter
@ 2018-08-16 19:09 Yongseok Koh
0 siblings, 0 replies; only message in thread
From: Yongseok Koh @ 2018-08-16 19:09 UTC (permalink / raw)
To: christian.ehrhardt; +Cc: stable, shahafs, Yongseok Koh
rte_errno may have garbage value if there's no error.
Fixes: a6d83b6a9209 ("net/mlx5: standardize on negative errno values")
Fixes: e657445767ed ("net/mlx5: fix error number handling")
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
---
Hi Christian,
This patch is to amend "net/mlx5: fix error number handling", which has been
already taken in stable/18.05. You can squash this patch to the previous one if
you want, but it is also okay to be two separate patches.
For 17.11, I found this bug after I released 17.11.4-rc1, so I had to keep it
separate though.
Thanks,
Yongseok
drivers/net/mlx5/mlx5_flow.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index 45207d70e..b219a1cad 100644
--- a/drivers/net/mlx5/mlx5_flow.c
+++ b/drivers/net/mlx5/mlx5_flow.c
@@ -3570,9 +3570,11 @@ mlx5_fdir_filter_delete(struct rte_eth_dev *dev,
if (parser.queue[i].ibv_attr)
rte_free(parser.queue[i].ibv_attr);
}
- if (ret)
+ if (ret) {
rte_errno = ret; /* Restore rte_errno. */
- return -rte_errno;
+ return -rte_errno;
+ }
+ return 0;
}
/**
--
2.11.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-16 19:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-16 19:09 [dpdk-stable] [PATCH 18.05] net/mlx5: fix return value when deleting fdir filter Yongseok Koh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).