projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8c931b
)
net/mlx5e: Skip redundant checks when providing NUD lastuse feedback
author
Roi Dayan
<
[email protected]
>
Mon, 13 Nov 2017 16:07:50 +0000
(18:07 +0200)
committer
Saeed Mahameed
<
[email protected]
>
Mon, 14 May 2018 22:10:21 +0000
(15:10 -0700)
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 <
[email protected]
>
Reviewed-by: Paul Blakey <
[email protected]
>
Reviewed-by: Or Gerlitz <
[email protected]
>
Signed-off-by: Saeed Mahameed <
[email protected]
>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
index b94276db3ce939225b282996ce0f382a2f36fa63..9b0e3ccffa66e12501fc5eceffa7366fd1ee0d12 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
@@
-982,6
+982,8
@@
void mlx5e_tc_update_neigh_used_value(struct mlx5e_neigh_hash_entry *nhe)
}
}
}
+ if (neigh_used)
+ break;
}
if (neigh_used) {