Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
route-table: Allow parsing routes without nexthop.
A recent commit added condition to "route_table_parse__" function that causes it to throw an error when parsing route without "nexthop information" (either RTA_OIF, RTA_GATEWAY, RTA_VIA or RTA_MULTIPATH). While this requirement is reasonable for regular routes, there are some route types that don't need nexthop. We intend to use one of these types, (RTN_BLACKHOLE)[0], in OVN for route advertising . This change does not enforce the above-mentioned condition for those special route types that don't require "nexthop information". v2: * Ensure that the list of nexthops is cleared if the route does not have them. * The function for determining whether a route requires nexthop now takes route_type (unsigned char) as an argument directly. Previously it took a pointer to rtmsg struct. * The patch is rebased on top of the in-flight patch series by Frode[1] * Fixed typos. [0] https://mail.openvswitch.org/pipermail/ovs-dev/2025-January/419383.html [1] https://patchwork.ozlabs.org/project/openvswitch/patch/[email protected]/ CC: Frode Nordahl <[email protected]> Fixes: 91fc511 ("route-table: Support parsing multipath routes.") Signed-off-by: Martin Kalcok <[email protected]> Signed-off-by: 0-day Robot <[email protected]>
- Loading branch information