nexthop: Enable resilient next-hop groups
authorPetr Machata <petrm@nvidia.com>
Thu, 11 Mar 2021 18:03:25 +0000 (19:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Mar 2021 00:13:00 +0000 (16:13 -0800)
Now that all the code is in place, stop rejecting requests to create
resilient next-hop groups.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/nexthop.c

index 015a47e8163adc11bcca4eb3209790be953d5f9c..f09fe3a5608f0c4dfcfee454d05edf0ee06c66b3 100644 (file)
@@ -2443,10 +2443,6 @@ static struct nexthop *nexthop_create_group(struct net *net,
        } else if (cfg->nh_grp_type == NEXTHOP_GRP_TYPE_RES) {
                struct nh_res_table *res_table;
 
-               /* Bounce resilient groups for now. */
-               err = -EINVAL;
-               goto out_no_nh;
-
                res_table = nexthop_res_table_alloc(net, cfg->nh_id, cfg);
                if (!res_table) {
                        err = -ENOMEM;