Skip to content

Commit

Permalink
Revert "net/mlx5e: Check the number of elements before walk TC rhasht…
Browse files Browse the repository at this point in the history
…able"

[ Upstream commit b7bbd69 ]

This reverts commit 4e25b66.

This Commit was mistakenly applied by pulling the wrong tag, remove it.

Fixes: 4e25b66 ("net/mlx5e: Check the number of elements before walk TC rhashtable")
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Saeed Mahameed authored and Sasha Levin committed Mar 15, 2024
1 parent 3fba8ea commit ba888f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void mlx5_esw_ipsec_restore_dest_uplink(struct mlx5_core_dev *mdev)

xa_for_each(&esw->offloads.vport_reps, i, rep) {
rpriv = rep->rep_data[REP_ETH].priv;
if (!rpriv || !rpriv->netdev || !atomic_read(&rpriv->tc_ht.nelems))
if (!rpriv || !rpriv->netdev)
continue;

rhashtable_walk_enter(&rpriv->tc_ht, &iter);
Expand Down

0 comments on commit ba888f1

Please sign in to comment.