]> git.ipfire.org Git - thirdparty/bird.git/commit
Filter: fixed eattr cached pointer
authorJan Maria Matejka <mq@ucw.cz>
Tue, 19 Jun 2018 14:16:08 +0000 (16:16 +0200)
committerJan Maria Matejka <mq@ucw.cz>
Tue, 19 Jun 2018 14:51:40 +0000 (16:51 +0200)
commit1771f70d7473b8c8e0c6bd47d5c35cc5fbe7eb19
tree3f8b9cb90d20d69cb0328453ba22627206002264
parent1ef23f05ee00394e6a2748f658b73c20d3ff7c45
Filter: fixed eattr cached pointer

Use ACCESS_RTE to guard **f_rte, use ACCESS_EATTRS to guard **f_eattrs.
Use f_rta_cow() before writing to rta or eattrs, use f_rte_cow() before
writing preference (stored in rte).

Do not access eattrs indirectly through (*f_rte)->attrs->eattrs, it is
way too slow. The cached pointer is faster.
filter/filter.c