• I
    nexthop: Emit a notification when a nexthop group is reduced · 833a1065
    Ido Schimmel 提交于
    When a single nexthop is deleted, the configuration of all the groups
    using the nexthop is effectively modified. In this case, emit a
    notification in the nexthop notification chain for each modified group
    so that listeners would not need to keep track of which nexthops are
    member in which groups.
    
    In the rare cases where the notification fails, emit an error to the
    kernel log. This is done by allocating extack on the stack and printing
    the error logged by the listener that rejected the notification.
    
    Changes since RFC:
    * Allocate extack on the stack
    Signed-off-by: NIdo Schimmel <idosch@nvidia.com>
    Signed-off-by: NJakub Kicinski <kuba@kernel.org>
    833a1065
nexthop.c 49.2 KB