All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/mlx5: fix flow creation with a single target queue
@ 2018-02-14 15:04 Nelio Laranjeiro
  2018-02-14 15:40 ` Adrien Mazarguil
  0 siblings, 1 reply; 3+ messages in thread
From: Nelio Laranjeiro @ 2018-02-14 15:04 UTC (permalink / raw)
  To: dev; +Cc: Adrien Mazarguil, Yongseok Koh, stable

Adding a pattern targeting a single queues wrongly behaves as it is an RSS
request, ending by creating several Verbs flows rules to match the RSS
configuration.

Fixes: 8086cf08b2f0 ("net/mlx5: handle RSS hash configuration in RSS flow")
Cc: stable@dpdk.org

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
---
 drivers/net/mlx5/mlx5_flow.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index 26002c4b9..42381c578 100644
--- a/drivers/net/mlx5/mlx5_flow.c
+++ b/drivers/net/mlx5/mlx5_flow.c
@@ -912,6 +912,15 @@ priv_flow_convert_finalise(struct priv *priv, struct mlx5_flow_parse *parser)
 	unsigned int i;
 
 	(void)priv;
+	/* Remove any other flow not matching the pattern. */
+	if (parser->queues_n == 1) {
+		for (i = 0; i != hash_rxq_init_n; ++i) {
+			if (i == parser->layer || !parser->queue[i].ibv_attr)
+				continue;
+			rte_free(parser->queue[i].ibv_attr);
+			parser->queue[i].ibv_attr = NULL;
+		}
+	}
 	if (parser->layer == HASH_RXQ_ETH) {
 		goto fill;
 	} else {
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] net/mlx5: fix flow creation with a single target queue
  2018-02-14 15:04 [PATCH] net/mlx5: fix flow creation with a single target queue Nelio Laranjeiro
@ 2018-02-14 15:40 ` Adrien Mazarguil
  2018-02-28  8:16   ` [dpdk-stable] " Shahaf Shuler
  0 siblings, 1 reply; 3+ messages in thread
From: Adrien Mazarguil @ 2018-02-14 15:40 UTC (permalink / raw)
  To: Nelio Laranjeiro; +Cc: dev, Yongseok Koh, stable

On Wed, Feb 14, 2018 at 04:04:45PM +0100, Nelio Laranjeiro wrote:
> Adding a pattern targeting a single queues wrongly behaves as it is an RSS
> request, ending by creating several Verbs flows rules to match the RSS
> configuration.
> 
> Fixes: 8086cf08b2f0 ("net/mlx5: handle RSS hash configuration in RSS flow")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>

Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>

-- 
Adrien Mazarguil
6WIND

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-stable] [PATCH] net/mlx5: fix flow creation with a single target queue
  2018-02-14 15:40 ` Adrien Mazarguil
@ 2018-02-28  8:16   ` Shahaf Shuler
  0 siblings, 0 replies; 3+ messages in thread
From: Shahaf Shuler @ 2018-02-28  8:16 UTC (permalink / raw)
  To: Adrien Mazarguil, Nélio Laranjeiro; +Cc: dev, Yongseok Koh, stable

Wednesday, February 14, 2018 5:40 PM, Adrien Mazarguil
> On Wed, Feb 14, 2018 at 04:04:45PM +0100, Nelio Laranjeiro wrote:
> > Adding a pattern targeting a single queues wrongly behaves as it is an
> > RSS request, ending by creating several Verbs flows rules to match the
> > RSS configuration.
> >
> > Fixes: 8086cf08b2f0 ("net/mlx5: handle RSS hash configuration in RSS
> > flow")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
> 
> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>

Applied to next-net-mlx, thanks. 

> 
> --
> Adrien Mazarguil
> 6WIND

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-28  8:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-14 15:04 [PATCH] net/mlx5: fix flow creation with a single target queue Nelio Laranjeiro
2018-02-14 15:40 ` Adrien Mazarguil
2018-02-28  8:16   ` [dpdk-stable] " Shahaf Shuler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.