]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Do not compare attr again. 8038/head
authorzyxwvu Shi <i@shiyc.cn>
Mon, 8 Feb 2021 12:09:02 +0000 (20:09 +0800)
committerzyxwvu Shi <i@shiyc.cn>
Mon, 8 Feb 2021 12:09:02 +0000 (20:09 +0800)
commitaeadbd9e1931ef560a74e79561dff3f0108eeb7d
tree5da8916e17ee3fb8db4e4e742795330f90b49319
parent658186e8b6ad84bd92fa46201901cf75bf3174c2
bgpd: Do not compare attr again.

`same_attr` has been computed and `hook_call(bgp_process)` (calling
BMP module) would not change it. We could reuse the value to filter
same attribute updates, avoiding an extra comparison.

Signed-off-by: zyxwvu Shi <i@shiyc.cn>
bgpd/bgp_route.c