public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Saeed Mahameed <saeed@kernel•org>
To: "David S. Miller" <davem@davemloft•net>,
	Jakub Kicinski <kuba@kernel•org>
Cc: netdev@vger•kernel.org, Yevgeny Kliteynik <kliteyn@nvidia•com>,
	Saeed Mahameed <saeedm@nvidia•com>
Subject: [net-next 1/6] net/mlx5: Compare sampler flow destination ID in fs_core
Date: Sat, 26 Jun 2021 00:44:12 -0700	[thread overview]
Message-ID: <20210626074417.714833-2-saeed@kernel.org> (raw)
In-Reply-To: <20210626074417.714833-1-saeed@kernel.org>

From: Yevgeny Kliteynik <kliteyn@nvidia•com>

When comparing sampler flow destinations,
in fs_core, consider sampler ID as well.

Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia•com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia•com>
---
 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
index b8617458a3fd..d7bf0a3e4a52 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
@@ -1504,7 +1504,9 @@ static bool mlx5_flow_dests_cmp(struct mlx5_flow_destination *d1,
 		    (d1->type == MLX5_FLOW_DESTINATION_TYPE_TIR &&
 		     d1->tir_num == d2->tir_num) ||
 		    (d1->type == MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE_NUM &&
-		     d1->ft_num == d2->ft_num))
+		     d1->ft_num == d2->ft_num) ||
+		    (d1->type == MLX5_FLOW_DESTINATION_TYPE_FLOW_SAMPLER &&
+		     d1->sampler_id == d2->sampler_id))
 			return true;
 	}
 
-- 
2.31.1


  reply	other threads:[~2021-06-26  7:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-26  7:44 [pull request][net-next 0/6] mlx5 updates 2021-06-26 Saeed Mahameed
2021-06-26  7:44 ` Saeed Mahameed [this message]
2021-06-28 21:20   ` [net-next 1/6] net/mlx5: Compare sampler flow destination ID in fs_core patchwork-bot+netdevbpf
2021-06-26  7:44 ` [net-next 2/6] net/mlx5: DR, Add support for flow sampler offload Saeed Mahameed
2021-06-26  7:44 ` [net-next 3/6] net/mlx5: Increase hairpin buffer size Saeed Mahameed
2021-06-26  7:44 ` [net-next 4/6] net/mlx5: SF, Improve performance in SF allocation Saeed Mahameed
2021-06-26  7:44 ` [net-next 5/6] net/mlx5e: kTLS, Add stats for number of deleted kTLS TX offloaded connections Saeed Mahameed
2021-06-26  7:44 ` [net-next 6/6] net/mlx5e: Add IPsec support to uplink representor Saeed Mahameed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210626074417.714833-2-saeed@kernel.org \
    --to=saeed@kernel$(echo .)org \
    --cc=davem@davemloft$(echo .)net \
    --cc=kliteyn@nvidia$(echo .)com \
    --cc=kuba@kernel$(echo .)org \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=saeedm@nvidia$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox