From: Michael Baum Date: Wed, 11 Nov 2020 07:36:44 +0000 (+0000) Subject: net/mlx5: remove unused calculation in RSS expansion X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8b3799531b9bc46fb518c4ec84f4960ecc78a0d0;p=dpdk.git net/mlx5: remove unused calculation in RSS expansion The RSS flow expansion get a memory buffer to fill the new patterns of the expanded flows. This memory management saves the next address to write into the buffer in a dedicated variable. The calculation for the next address was wrongly also done when all the patterns were ready. Remove it. Fixes: 4ed05fcd441b ("ethdev: add flow API to expand RSS flows") Cc: stable@dpdk.org Signed-off-by: Michael Baum Acked-by: Matan Azrad --- diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 238e9fcd1c..324349ed19 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -379,8 +379,6 @@ mlx5_flow_expand_rss(struct mlx5_flow_expand_rss *buf, size_t size, user_pattern_size); addr = (void *)(((uintptr_t)addr) + user_pattern_size); rte_memcpy(addr, flow_items, elt * sizeof(*item)); - addr = (void *)(((uintptr_t)addr) + - elt * sizeof(*item)); } } return lsize;