]> git.ipfire.org Git - thirdparty/bird.git/commit
Filter: Bitfield eattrs reading / writing moved to filter code
authorMaria Matejka <mq@ucw.cz>
Fri, 25 Mar 2022 18:51:35 +0000 (19:51 +0100)
committerMaria Matejka <mq@ucw.cz>
Wed, 4 May 2022 13:37:41 +0000 (15:37 +0200)
commitbc17fee1bfdbd330f5a4377bf40f6de0681afa5c
treead1a32b216cdb28d13f4cfbae1cf8c711c5d556c
parentd4bcef0e0bfee911d403c0cf830de3e3007eeb38
Filter: Bitfield eattrs reading / writing moved to filter code

Before this change, fetch-update-write and bitmasking was hardcoded in
attribute access code cased by the attribute type. Several filter
instructions are used to do it instead.

As this is certainly going to be a little bit slower than before, the
switch block in attribute access code should be completely removed in
near future, helping with both performance and code cleanliness.

The user interface should have stayed intact.
filter/config.Y
filter/f-inst.c
filter/f-inst.h
filter/test.conf
nest/route.h
nest/rt-attr.c
sysdep/linux/netlink.Y
sysdep/linux/netlink.c