summaryrefslogtreecommitdiff
path: root/zebra/zebra_errors.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-06-29 09:35:00 -0400
committerDonald Sharp <sharpd@nvidia.com>2023-06-29 09:35:00 -0400
commitd0123a90120fca9192052d9d866e7c65b6412cae (patch)
treedb164049a9757d1945567b0a9cfb91350d2c9b2f /zebra/zebra_errors.h
parent1ce1c537a5de2256ee547ba06648d4c104d939ac (diff)
zebra: Static routes async notification do not need this test
When using asic_offload with an asynchronous notification the rib_route_match_ctx function is testing for distance and tag being correct against the re. Normal route notification for static routes is this(well really all routes): a) zebra dplane generates a ctx to send to the dplane for route install b) dplane installs it in the kernel c) if the dplane_fpm_nl.c module is being used it installs it. d) The context's success code is set to it worked and passes the context back up to zebra for processing. e) Zebra master receives this and checks the distance and tag are correct for static routes and accepts the route and marks it installed. If the operator is using a wait for install mechansim where the dplane is asynchronously sending the result back up at a future time *and* it is using the dplane_fpm_nl.c code where it uses the rt_netlink.c route parsing code, then there is no way to set distance as that we do not pass distance to the kernel. As such static routes were never being properly handled since the re and context would not match and the route would still be marked as queued. Modify the code such that the asynchronous path notification for static routes ignores the distance and tag's as that there is no way to test for this data from that path at this point in time. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_errors.h')
0 files changed, 0 insertions, 0 deletions