net/mlx5e: Skip redundant checks when providing NUD lastuse feedback
authorRoi Dayan <roid@mellanox.com>
Mon, 13 Nov 2017 16:07:50 +0000 (18:07 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 14 May 2018 22:10:21 +0000 (15:10 -0700)
commite36d4810f2e98110e2b0de11ffc60f71a0a26805
treea0b410751d5da215609ad7372ffa17ebe0b624cf
parentb8c931ba3c739b49bd536d35851712d838857757
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: Roi Dayan <roid@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c