Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e36d4810 authored by Roi Dayan's avatar Roi Dayan Committed by Saeed Mahameed
Browse files

net/mlx5e: Skip redundant checks when providing NUD lastuse feedback



It's redundant to continue the loop if we found one flow whose lastuse value
being newer than the last one we reported, since this is enough for us to
trigger a NUD update (neigh_event_send()).

Signed-off-by: default avatarRoi Dayan <roid@mellanox.com>
Reviewed-by: default avatarPaul Blakey <paulb@mellanox.com>
Reviewed-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent b8c931ba
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -982,6 +982,8 @@ void mlx5e_tc_update_neigh_used_value(struct mlx5e_neigh_hash_entry *nhe)
				}
			}
		}
		if (neigh_used)
			break;
	}

	if (neigh_used) {